blk-mq: centralise related handling into blk_mq_get_driver_tag
authorMing Lei <ming.lei@redhat.com>
Mon, 6 Jul 2020 14:41:11 +0000 (22:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Jul 2020 22:06:42 +0000 (16:06 -0600)
commit568f2700657794b8258e72983ba508793a658942
tree80372f8bdcf5994afeed2a73c503da510c624468
parent7bf137298cb73afdb8c5536e474f7ba71ab1c235
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>
block/blk-flush.c
block/blk-mq-tag.h
block/blk-mq.c
block/blk.h