blk-mq: put driver tag when this request is completed
authorMing Lei <ming.lei@redhat.com>
Mon, 29 Jun 2020 09:47:59 +0000 (17:47 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Jun 2020 15:56:10 +0000 (09:56 -0600)
commit36a3df5a4574d5ddf59804fcd0c4e9654c514d9a
treefad883c9f1e30985b8ee6c913c6aa9ae4cd0d3f3
parenta2e83ef9c3da0602234357bdbfe2ac64e91906e9
blk-mq: put driver tag when this request is completed

It is natural to release driver tag when this request is completed by
LLD or device since its purpose is for LLD use.

One big benefit is that the released tag can be re-used quicker since
bio_endio() may take too long.

Meantime we don't need to release driver tag for flush request.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c
block/blk-mq.c