diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-16 17:09:58 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-16 17:09:58 +0300 |
commit | 891b7c5fbf619d2a314e424775b3c232eb227e90 (patch) | |
tree | 2307f1daa3cb1677d695a011c0995a36797586dc /include/linux | |
parent | 804186fa95c871aba621da280284d3bc46746d50 (diff) | |
download | linux-891b7c5fbf619d2a314e424775b3c232eb227e90.tar.xz |
mtd_blkdevs: convert to blk-mq
Straight forward conversion, using an internal list to enable the
driver to pull requests at will.
Dynamically allocate the tag set to avoid having to pull in the
block headers for blktrans.h, since various mtd drivers use
block conflicting names for defines and functions.
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Tested-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/blktrans.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h index e93837f647de..1d3ade69d39a 100644 --- a/include/linux/mtd/blktrans.h +++ b/include/linux/mtd/blktrans.h @@ -23,7 +23,6 @@ #include <linux/mutex.h> #include <linux/kref.h> #include <linux/sysfs.h> -#include <linux/workqueue.h> struct hd_geometry; struct mtd_info; @@ -44,9 +43,9 @@ struct mtd_blktrans_dev { struct kref ref; struct gendisk *disk; struct attribute_group *disk_attributes; - struct workqueue_struct *wq; - struct work_struct work; struct request_queue *rq; + struct list_head rq_list; + struct blk_mq_tag_set *tag_set; spinlock_t queue_lock; void *priv; fmode_t file_mode; |