mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Remove unneded lock_kernel() in driver/block/loop.c
@ 2007-07-09  1:57 Diego Woitasen
  2007-07-20  0:38 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Woitasen @ 2007-07-09  1:57 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: Diego Woitasen


Signed-off-by: Diego Woitasen <diego@woitasen.com.ar>
---
 drivers/block/loop.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 0ed5470..1cc004e 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1286,7 +1286,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);
@@ -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
-- 
1.5.2.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-20  0:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-09  1:57 [PATCH] Remove unneded lock_kernel() in driver/block/loop.c Diego Woitasen
2007-07-20  0:38 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome