diff options
| author | Chaitanya Kulkarni <[email protected]> | 2018-05-11 02:38:15 -0400 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2018-05-25 16:50:12 +0200 |
| commit | eb464833a2e787996474ad33dafa2c5336d4c477 (patch) | |
| tree | d3a1f124fd3bb2931219016457fa997c1d090b40 /tools/perf/scripts/python | |
| parent | 17d78252ee568ecf94df6829c81578c0602991eb (diff) | |
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 <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions