linux_dsm_epyc7002/drivers/nvme/host
Chaitanya Kulkarni 34e08191b1 nvme-rdma: use nr_phys_segments when map rq to sgl
Use blk_rq_nr_phys_segments() instead of blk_rq_payload_bytes() to check
if a command contains data to be mapped.  This fixes the case where
a struct request contains LBAs, but it has no payload, such as
Write Zeroes support.

Fixes: 6e02318eae ("nvme: add support for the Write Zeroes command")
Reported-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tested-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2019-02-21 06:39:20 -07:00
..
core.c nvme: convert to SPDX identifiers 2019-02-20 07:22:28 -07: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: convert to SPDX identifiers 2019-02-20 07:22:17 -07: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: convert to SPDX identifiers 2019-02-20 07:22:28 -07:00
pci.c nvme-pci: convert to SPDX identifiers 2019-02-20 07:22:25 -07: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: remove the .stop_ctrl callout 2019-02-04 15:41:25 +01:00
trace.c nvme: convert to SPDX identifiers 2019-02-20 07:22:28 -07:00
trace.h nvme: convert to SPDX identifiers 2019-02-20 07:22:28 -07:00