diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-23 03:00:38 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 07:38:12 -0800 |
commit | f85221dd74f2708b78a2aa54de59944e44206d0e (patch) | |
tree | f9e9710f78bf56515b04101bb40087b50e4bfeb6 /include/linux/loop.h | |
parent | 0ac1759abc69fb62438c30a7e422f628a1120d67 (diff) | |
download | kernel_samsung_smdk4412-f85221dd74f2708b78a2aa54de59944e44206d0e.zip kernel_samsung_smdk4412-f85221dd74f2708b78a2aa54de59944e44206d0e.tar.gz kernel_samsung_smdk4412-f85221dd74f2708b78a2aa54de59944e44206d0e.tar.bz2 |
[PATCH] sem2mutex: drivers/block/loop.c
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/loop.h')
-rw-r--r-- | include/linux/loop.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/loop.h b/include/linux/loop.h index f965067..e76c761 100644 --- a/include/linux/loop.h +++ b/include/linux/loop.h @@ -17,6 +17,7 @@ #include <linux/bio.h> #include <linux/blkdev.h> #include <linux/spinlock.h> +#include <linux/mutex.h> /* Possible states of device */ enum { @@ -60,7 +61,7 @@ struct loop_device { int lo_state; struct completion lo_done; struct completion lo_bh_done; - struct semaphore lo_ctl_mutex; + struct mutex lo_ctl_mutex; int lo_pending; request_queue_t *lo_queue; |