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)
commitd250bf4e776ff09d51c97f83c7a19f65a9e1c5a5
tree8b0d1aff3030f70300bd2be35b279ae24a131f8e
parent5e3c3a7ecefefaebc7c9a626fe4522cb85bbdaad
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