Remove unneded lock_kernel() in drivers/block/loop.c
This patch remove the unneeded lock_kernel() in drivers/block/loop.c. I read the code and this lock_kernel() doesn't protect anything. Loopback code use lo_ctl_mutex for syncronization.
drivers/block/loop.c +0 -2
@@ -1286,7 +1286,6 @@ static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long astruct loop_device *lo = inode->i_bdev->bd_disk->private_data;int err; -lock_kernel ();switch (cmd) {case LOOP_SET_STATUS :mutex_lock (&lo->lo_ctl_mutex);
@@ -1312,7 +1311,6 @@ static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long a err = -ENOIOCTLCMD ; break; } -unlock_kernel ();return err; }#endif
Signature · 2 lines
-------------- Diego Woitasen