]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iter
authorChristoph Hellwig <hch@lst.de>
Wed, 30 May 2018 16:51:00 +0000 (18:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 May 2018 17:31:34 +0000 (11:31 -0600)
commitbab43d3b6bf063e25c175939bd66285aa456541d
tree8b0d1aff3030f70300bd2be35b279ae24a131f8e
parentad1181218daf54798eb0b69e2141a584ce221cfe
blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iter

We already check for started commands in all callbacks, but we should
also protect against already completed commands.  Do this by taking
the checks to common code.

Acked-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
drivers/block/mtip32xx/mtip32xx.c
drivers/block/nbd.c
drivers/nvme/host/core.c
drivers/nvme/host/fc.c