Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

viotape: cdev lock_kernel pushdown ()

Signed-off-by: Jonathan Corbet <corbet@lwn.net>

+3
+3
drivers/char/viotape.c
··· 46 46 #include <linux/completion.h> 47 47 #include <linux/proc_fs.h> 48 48 #include <linux/seq_file.h> 49 + #include <linux/smp_lock.h> 49 50 50 51 #include <asm/uaccess.h> 51 52 #include <asm/ioctls.h> ··· 688 687 if (op == NULL) 689 688 return -ENOMEM; 690 689 690 + lock_kernel() 691 691 get_dev_info(file->f_path.dentry->d_inode, &devi); 692 692 693 693 /* Note: We currently only support one mode! */ ··· 719 717 720 718 free_op: 721 719 free_op_struct(op); 720 + unlock_kernel(); 722 721 return ret; 723 722 } 724 723