aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/core.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2018-05-11 02:38:15 -0400
committerChristoph Hellwig <hch@lst.de>2018-05-25 16:50:12 +0200
commiteb464833a2e787996474ad33dafa2c5336d4c477 (patch)
treed3a1f124fd3bb2931219016457fa997c1d090b40 /drivers/nvme/host/core.c
parentnvmet-fc: increase LS buffer count per fc port (diff)
downloadlinux-dev-eb464833a2e787996474ad33dafa2c5336d4c477.tar.xz
linux-dev-eb464833a2e787996474ad33dafa2c5336d4c477.zip
nvmet-loop: 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 me mapped. This fixes the case where a struct requests contains LBAs, but no data will actually be send, e.g. the pending Write Zeroes support. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions