Skip to content

avoid double request completion and IO error

Chao Leng linux-block linux-nvme 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 10 repliesIn review
  2. v45 patches 11 repliesSuperseded
  3. v35 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches16 repliesSuperseded
v16 patches4 repliesSuperseded

Changes in v5 from the cover letter

- 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.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3blk-mq: introduce blk_mq_set_request_completeinclude/linux/blk-mq.h+9 -05 replies
2/3nvme-fabrics: avoid double request completion for nvmf_fail_nonready_commanddrivers/nvme/host/fabrics.c+1 -10 replies
3/3nvme-rdma: avoid IO error for nvme native multipathdrivers/nvme/host/rdma.c+12 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] avoid double request completion and IO error

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(-)
Signature · 7 lines
2.16.4


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme