]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
blk-mq: put driver tag if dispatch budget can't be got
authorMing Lei <ming.lei@redhat.com>
Wed, 8 Nov 2017 01:11:22 +0000 (09:11 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commit0c6af1ccd5fd9ac640aef01c8de0043837451a04
treee367c79457485a183e6231868fa5fb8fce2b2e40
parentf00c4d80ffdac9e3a64947ebd57489f3232d5a74
blk-mq: put driver tag if dispatch budget can't be got

We have to put the driver tag if dispatch budget can't be got, otherwise
it might cause IO deadlock, especially in case that size of tags is very
small.

Fixes: de1482974080(blk-mq: introduce .get_budget and .put_budget in blk_mq_ops)
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c