summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-03-23 03:00:38 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-23 07:38:12 -0800
commitf85221dd74f2708b78a2aa54de59944e44206d0e (patch)
treef9e9710f78bf56515b04101bb40087b50e4bfeb6 /include
parent0ac1759abc69fb62438c30a7e422f628a1120d67 (diff)
downloadop-kernel-dev-f85221dd74f2708b78a2aa54de59944e44206d0e.zip
op-kernel-dev-f85221dd74f2708b78a2aa54de59944e44206d0e.tar.gz
[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')
-rw-r--r--include/linux/loop.h3
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;
OpenPOWER on IntegriCloud