]> 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)
commit93351208254abefa1015cf1ad866f79df4e2f306
tree8b0d1aff3030f70300bd2be35b279ae24a131f8e
parent54d58b8661d6e8cd4b68350e37f997b00c504c2a
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