All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] avoid double request completion and IO error
@ 2021-02-01  3:49 ` Chao Leng
  0 siblings, 0 replies; 28+ messages in thread
From: Chao Leng @ 2021-02-01  3:49 UTC (permalink / raw)
  To: linux-nvme; +Cc: kbusch, axboe, hch, sagi, linux-block, axboe

First, avoid double request completion for nvmf_fail_nonready_command if
the request is freed asynchronously.
Second, avoid IO error. If work with nvme native multipath, rdma HBA
drivers may failed due to failed hardware, queue_rq should failed the
request instead of returning error to block layer, So upper layer can
failover the request if another path is available.
Need set the state of request to MQ_RQ_COMPLETE when queue_rq directly
complete the request. So introduce blk_mq_set_request_complete.

V5:
	- add comment for blk_mq_set_request_complete.
	- fail the request just for -EIO returned by rdma HBA drivers.
	- delete the helper: nvme_complete_failed_req.
V4:
	- add status parameter for nvme_complete_failed_req.
	- export nvme_complete_failed_req instead of inline function.
V3:
	- complete the request just for HBA driver path related error.
V2:
	- use "switch" instead "if" to check return status.

Chao Leng (3):
  blk-mq: introduce blk_mq_set_request_complete
  nvme-fabrics: avoid double request completion for
    nvmf_fail_nonready_command
  nvme-rdma: avoid IO error for nvme native multipath

 drivers/nvme/host/fabrics.c |  2 +-
 drivers/nvme/host/rdma.c    | 13 ++++++++++++-
 include/linux/blk-mq.h      |  9 +++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

-- 
2.16.4


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2021-02-05  2:03 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01  3:49 [PATCH v5 0/3] avoid double request completion and IO error Chao Leng
2021-02-01  3:49 ` Chao Leng
2021-02-01  3:49 ` [PATCH v5 1/3] blk-mq: introduce blk_mq_set_request_complete Chao Leng
2021-02-01  3:49   ` Chao Leng
2021-02-04 15:27   ` Jens Axboe
2021-02-04 15:27     ` Jens Axboe
2021-02-04 15:30     ` Christoph Hellwig
2021-02-04 15:30       ` Christoph Hellwig
2021-02-04 15:32       ` Jens Axboe
2021-02-04 15:32         ` Jens Axboe
2021-02-04 15:36         ` Christoph Hellwig
2021-02-04 15:36           ` Christoph Hellwig
2021-02-04 15:41           ` Jens Axboe
2021-02-04 15:41             ` Jens Axboe
2021-02-01  3:49 ` [PATCH v5 2/3] nvme-fabrics: avoid double request completion for nvmf_fail_nonready_command Chao Leng
2021-02-01  3:49   ` Chao Leng
2021-02-01  3:49 ` [PATCH v5 3/3] nvme-rdma: avoid IO error for nvme native multipath Chao Leng
2021-02-01  3:49   ` Chao Leng
2021-02-03 16:14 ` [PATCH v5 0/3] avoid double request completion and IO error Christoph Hellwig
2021-02-03 16:14   ` Christoph Hellwig
2021-02-03 22:22   ` Sagi Grimberg
2021-02-03 22:22     ` Sagi Grimberg
2021-02-04  5:56   ` Chao Leng
2021-02-04  5:56     ` Chao Leng
2021-02-04  8:04     ` Christoph Hellwig
2021-02-04  8:04       ` Christoph Hellwig
2021-02-05  2:02       ` Chao Leng
2021-02-05  2:02         ` Chao Leng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.