From: Diego Woitasen Date: Wed, 17 Oct 2007 06:26:17 +0000 (-0700) Subject: Remove unneeded lock_kernel() in driver/block/loop.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=759d7c6c47cf1439171d057a226453e96856c5de;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Remove unneeded lock_kernel() in driver/block/loop.c Signed-off-by: Diego Woitasen Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/loop.c b/drivers/block/loop.c index e5a051577a5e..589cbbd9cd4f 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1285,7 +1285,6 @@ static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long a struct 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); @@ -1311,7 +1310,6 @@ static long lo_compat_ioctl(struct file *file, unsigned int cmd, unsigned long a err = -ENOIOCTLCMD; break; } - unlock_kernel(); return err; } #endif