aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2020-10-16 16:19:05 -0600
committerChristoph Hellwig <[email protected]>2020-10-22 15:28:02 +0200
commit5e063101ffacf7c14797f5185c58a967ca83c79f (patch)
tree9dd5d8300c7ec5af92fe15492027363d6ed7f370 /tools/perf/scripts/python/export-to-sqlite.py
parentdf06047d54276f73782c9d97882b305fca745d3f (diff)
nvmet: cleanup nvmet_passthru_map_sg()
Clean up some confusing elements of nvmet_passthru_map_sg() by returning early if the request is greater than the maximum bio size. This allows us to drop the sg_cnt variable. This should not result in any functional change but makes the code clearer and more understandable. The original code allocated a truncated bio then would return EINVAL when bio_add_pc_page() filled that bio. The new code just returns EINVAL early if this would happen. Fixes: c1fef73f793b ("nvmet: add passthru code to process commands") Signed-off-by: Logan Gunthorpe <[email protected]> Suggested-by: Douglas Gilbert <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions