X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Floop.h;h=191a595055f0063db70032a2074d8addb5eb0ad9;hb=e30fdb1e026c2d05f216d2e5a25bfafdfd261ec2;hp=40f63c9879d26798bbfc073753cc58ecd9de306b;hpb=de5144164f6242ccfa8c9b64eec570564f5eaf14;p=powerpc.git diff --git a/include/linux/loop.h b/include/linux/loop.h index 40f63c9879..191a595055 100644 --- a/include/linux/loop.h +++ b/include/linux/loop.h @@ -17,6 +17,7 @@ #include #include #include +#include /* Possible states of device */ enum { @@ -58,10 +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; - int lo_pending; + struct mutex lo_ctl_mutex; + struct task_struct *lo_thread; + wait_queue_head_t lo_event; request_queue_t *lo_queue; };