summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2019-02-20 20:13:34 -0800
committerChristoph Hellwig <hch@lst.de>2019-02-21 06:39:20 -0700
commit34e08191b146a363d72be1a488d55ecdc01a5c7d (patch)
tree18e2e1a1dc21881e727c4309121e0b1a9bce043d /arch/um
parent77141dc6ceffdbf4dd3470911c838309e23cd55c (diff)
downloadlinux-34e08191b146a363d72be1a488d55ecdc01a5c7d.tar.bz2
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: 6e02318eaea5 ("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>
Diffstat (limited to 'arch/um')
0 files changed, 0 insertions, 0 deletions