diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-30 18:51:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-30 19:31:34 +0200 |
commit | d250bf4e776ff09d51c97f83c7a19f65a9e1c5a5 (patch) | |
tree | 8b0d1aff3030f70300bd2be35b279ae24a131f8e /drivers/nvme/host/fc.c | |
parent | nbd: clear DISCONNECT_REQUESTED flag once disconnection occurs. (diff) | |
download | linux-d250bf4e776ff09d51c97f83c7a19f65a9e1c5a5.tar.xz linux-d250bf4e776ff09d51c97f83c7a19f65a9e1c5a5.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/nvme/host/fc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index ac35a80f5532..0bad65803271 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -2393,9 +2393,6 @@ nvme_fc_terminate_exchange(struct request *req, void *data, bool reserved) struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); struct nvme_fc_fcp_op *op = blk_mq_rq_to_pdu(req); - if (!blk_mq_request_started(req)) - return; - __nvme_fc_abort_op(ctrl, op); } |