]> err.no Git - linux-2.6/blobdiff - include/linux/loop.h
[PATCH] md/bitmap: remove bitmap writeback daemon
[linux-2.6] / include / linux / loop.h
index 40f63c9879d26798bbfc073753cc58ecd9de306b..bf3d2345ce99ccafe7f85ace5a23cd836b9d5285 100644 (file)
@@ -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 {
@@ -58,9 +59,9 @@ struct loop_device {
        struct bio              *lo_bio;
        struct bio              *lo_biotail;
        int                     lo_state;
-       struct semaphore        lo_sem;
-       struct semaphore        lo_ctl_mutex;
-       struct semaphore        lo_bh_mutex;
+       struct task_struct      *lo_thread;
+       struct completion       lo_bh_done;
+       struct mutex            lo_ctl_mutex;
        int                     lo_pending;
 
        request_queue_t         *lo_queue;