mtd: mtd_blkdevs: Replace request handler kthread with a workqueue
[deliverable/linux.git] / include / linux / mtd / blktrans.h
index ed270bd2e4df0d724bda716234a418cec30822c0..4eb0a50d0c55583454d1842d039dacdb648b7b5e 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/mutex.h>
 #include <linux/kref.h>
 #include <linux/sysfs.h>
+#include <linux/workqueue.h>
 
 struct hd_geometry;
 struct mtd_info;
@@ -43,7 +44,8 @@ struct mtd_blktrans_dev {
        struct kref ref;
        struct gendisk *disk;
        struct attribute_group *disk_attributes;
-       struct task_struct *thread;
+       struct workqueue_struct *wq;
+       struct work_struct work;
        struct request_queue *rq;
        spinlock_t queue_lock;
        void *priv;
This page took 0.029087 seconds and 5 git commands to generate.