]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
blk-mq: centralise related handling into blk_mq_get_driver_tag
authorMing Lei <ming.lei@redhat.com>
Tue, 30 Jun 2020 14:03:57 +0000 (22:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 18:57:59 +0000 (12:57 -0600)
commit37f4a24c2469a10a4c16c641671bd766e276cf9f
treedfc8b59c211c73499b74e0c176fba2ae157042cf
parent723bf178f158abd1ce6069cb049581b3cb003aab
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