diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2018-05-11 02:38:15 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-25 16:50:12 +0200 |
commit | eb464833a2e787996474ad33dafa2c5336d4c477 (patch) | |
tree | d3a1f124fd3bb2931219016457fa997c1d090b40 /drivers/tty/tty_mutex.c | |
parent | 17d78252ee568ecf94df6829c81578c0602991eb (diff) | |
download | linux-eb464833a2e787996474ad33dafa2c5336d4c477.tar.bz2 |
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 'drivers/tty/tty_mutex.c')
0 files changed, 0 insertions, 0 deletions