X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Floop.h;h=1ea7d8430751b71c71dd185a75bf0a8ad8db1a85;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=f96506782ebe99265b99b78e3f7cfd50bec8e586;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/linux/loop.h b/include/linux/loop.h index f96506782..1ea7d8430 100644 --- a/include/linux/loop.h +++ b/include/linux/loop.h @@ -17,6 +17,7 @@ #include #include #include +#include /* Possible states of device */ enum { @@ -44,6 +45,7 @@ struct loop_device { struct loop_func_table *lo_encryption; __u32 lo_init[2]; uid_t lo_key_owner; /* Who set the key */ + xid_t lo_xid; int (*ioctl)(struct loop_device *, int cmd, unsigned long arg); @@ -58,10 +60,9 @@ struct loop_device { struct bio *lo_bio; struct bio *lo_biotail; int lo_state; - struct completion lo_done; - struct completion lo_bh_done; - struct semaphore lo_ctl_mutex; - int lo_pending; + struct mutex lo_ctl_mutex; + struct task_struct *lo_thread; + wait_queue_head_t lo_event; request_queue_t *lo_queue; };