projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
966fe39
)
Remove unneeded lock_kernel() in driver/block/loop.c
author
Diego Woitasen
<diego@woitasen.com.ar>
Wed, 17 Oct 2007 06:26:17 +0000
(23:26 -0700)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:48 +0000
(08:42 -0700)
Signed-off-by: Diego Woitasen <diego@woitasen.com.ar>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/loop.c
patch
|
blob
|
history
diff --git
a/drivers/block/loop.c
b/drivers/block/loop.c
index e5a051577a5e617008f263b8cb5c9f914e1fe6a7..589cbbd9cd4f4f54f77338ee9ec09bb2f8af591a 100644
(file)
--- 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