linux-stable/drivers/nvme/host
Sagi Grimberg 602d674ce9 nvme-tcp: support C2HData with SUCCESS flag
A C2HData PDU with the SUCCESS flag set indicates that the I/O was
completed by the controller successfully and means that a subsequent
completion response capsule PDU will be ommitted.

If we see this flag, fisrt we check that LAST_PDU flag is set as well,
and then we complete the request when the data transfer (and data digest
verification if its on) is done.

While we're at it, reuse a bit of code with nvme_fail_request.

Reported-by: Steve Blightman <steve.blightman@oracle.com>
Suggested-by: Oliver Smith-Denny <osmithde@cisco.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Oliver Smith-Denny <osmithde@cisco.com>
Tested-by: Oliver Smith-Denny <osmithde@cisco.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-03-13 12:57:34 -06:00
..
core.c nvme: add proper write zeroes setup for the multipath device 2019-03-13 12:57:34 -06:00
fabrics.c nvme-fabrics: convert to SPDX identifiers 2019-02-20 07:22:13 -07:00
fabrics.h nvme-fabrics: convert to SPDX identifiers 2019-02-20 07:22:13 -07:00
fault_inject.c nvme: convert to SPDX identifiers 2019-02-20 07:22:28 -07:00
fc.c nvme-fc: reject reconnect if io queue count is reduced to zero 2019-03-13 12:05:40 -06:00
Kconfig nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
lightnvm.c nvme-lightnvm: convert to SPDX identifiers 2019-02-20 07:22:22 -07:00
Makefile nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
multipath.c nvme: convert to SPDX identifiers 2019-02-20 07:22:28 -07:00
nvme.h nvme: disable Write Zeroes for qemu controllers 2019-03-13 12:57:34 -06:00
pci.c nvme: disable Write Zeroes for qemu controllers 2019-03-13 12:57:34 -06:00
rdma.c nvme-rdma: use nr_phys_segments when map rq to sgl 2019-02-21 06:39:20 -07:00
tcp.c nvme-tcp: support C2HData with SUCCESS flag 2019-03-13 12:57:34 -06:00
trace.c nvme: add get-feature to admin cmds tracer 2019-03-13 12:05:39 -06:00
trace.h nvme-trace: fix cdw10 buffer overrun 2019-03-13 12:05:39 -06:00