linux/drivers/nvme/host
Sagi Grimberg 12b2aaadb6 nvme-rdma: fix in-casule data send for chained sgls
We have only 2 inline sg entries and we allow 4 sg entries for the send
wr sge. Larger sgls entries will be chained. However when we build
in-capsule send wr sge, we iterate without taking into account that the
sgl may be chained and still fit in-capsule (which can happen if the sgl
is bigger than 2, but lower-equal to 4).

Fix in-capsule data mapping to correctly iterate chained sgls.

Fixes: 38e1800275 ("nvme-rdma: Avoid preallocating big SGL for data")
Reported-by: Walker, Benjamin <benjamin.walker@intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-05-31 09:06:11 +03:00
..
core.c nvme: fix potential memory leaks in nvme_cdev_add 2021-05-25 09:21:15 +02:00
fabrics.c nvme-fabrics: decode host pathing error for connect 2021-05-25 09:21:16 +02:00
fabrics.h nvme: move the fabrics queue ready check routines to core 2021-05-04 09:35:49 +02:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c nvme-fc: short-circuit reconnect retries 2021-05-25 09:21:15 +02:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: Return error code when registration fails 2021-03-05 13:41:03 +01:00
ioctl.c nvme: fix controller ioctl through ns_head 2021-05-04 09:35:47 +02:00
Kconfig nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME 2021-05-26 16:18:22 +02:00
lightnvm.c for-5.13/drivers-2021-04-27 2021-04-28 14:39:37 -07:00
Makefile nvme: move the ioctl code to a separate file 2021-04-15 08:12:55 +02:00
multipath.c nvmet: use new ana_log_size instead the old one 2021-05-13 16:33:32 +02:00
nvme.h nvme-multipath: fix double initialization of ANA state 2021-05-11 18:30:45 +02:00
pci.c nvme-pci: fix controller reset hang when racing with nvme_timeout 2021-05-04 09:35:50 +02:00
rdma.c nvme-rdma: fix in-casule data send for chained sgls 2021-05-31 09:06:11 +03:00
tcp.c nvme-tcp: rerun io_work if req_list is not empty 2021-05-19 08:33:42 +02:00
trace.c nvme: add tracing of zns commands 2021-02-02 10:26:12 +01:00
trace.h nvme-trace: print result and status in hex format 2019-06-21 11:12:37 +02:00
zns.c nvme: let namespace probing continue for unsupported features 2021-04-15 08:12:56 +02:00