aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/loop.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-01-09 15:59:27 -0800
committerIngo Molnar <mingo@hera.kernel.org>2006-01-09 15:59:27 -0800
commit11b751ae8c8ca3fa24c85bd5a3e51dd9f95cda17 (patch)
tree7da3ef8bc6db62d76569ae709d7a2b8357719b0c /include/linux/loop.h
parent[PATCH] mutex subsystem, semaphore to completion: IDE ->gendev_rel_sem (diff)
downloadlinux-dev-11b751ae8c8ca3fa24c85bd5a3e51dd9f95cda17.tar.xz
linux-dev-11b751ae8c8ca3fa24c85bd5a3e51dd9f95cda17.zip
[PATCH] mutex subsystem, semaphore to completion: drivers/block/loop.c
convert the block loop device from semaphores to completions. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/loop.h')
-rw-r--r--include/linux/loop.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/loop.h b/include/linux/loop.h
index 40f63c9879d2..f96506782ebe 100644
--- a/include/linux/loop.h
+++ b/include/linux/loop.h
@@ -58,9 +58,9 @@ struct loop_device {
struct bio *lo_bio;
struct bio *lo_biotail;
int lo_state;
- struct semaphore lo_sem;
+ struct completion lo_done;
+ struct completion lo_bh_done;
struct semaphore lo_ctl_mutex;
- struct semaphore lo_bh_mutex;
int lo_pending;
request_queue_t *lo_queue;