summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2020-06-30 16:03:57 +0200
committerJens Axboe <axboe@kernel.dk>2020-06-30 20:57:59 +0200
commit37f4a24c2469a10a4c16c641671bd766e276cf9f (patch)
treedfc8b59c211c73499b74e0c176fba2ae157042cf /block/blk.h
parentblk-mq: move blk_mq_put_driver_tag() into blk-mq.c (diff)
downloadlinux-37f4a24c2469a10a4c16c641671bd766e276cf9f.tar.xz
linux-37f4a24c2469a10a4c16c641671bd766e276cf9f.zip
blk-mq: centralise related handling into blk_mq_get_driver_tag
Move .nr_active update and request assignment into blk_mq_get_driver_tag(), all are good to do during getting driver tag. Meantime blk-flush related code is simplified and flush request needn't to update the request table manually any more. Signed-off-by: Ming Lei <ming.lei@redhat.com> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk.h b/block/blk.h
index 41a50880c94e..0184a31fe4df 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -25,11 +25,6 @@ struct blk_flush_queue {
struct list_head flush_data_in_flight;
struct request *flush_rq;
- /*
- * flush_rq shares tag with this rq, both can't be active
- * at the same time
- */
- struct request *orig_rq;
struct lock_class_key key;
spinlock_t mq_flush_lock;
};