diff options
| author | Zhou Wang <[email protected]> | 2019-07-24 11:54:23 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-08-08 07:45:01 -0600 |
| commit | 79e178f4383a3a645f76bc2dd44c477b361c6a98 (patch) | |
| tree | c414e76b0d0eb6bd2d251f8f1f18198bcf5d5bca /tools/perf/scripts/python/sctop.py | |
| parent | ba6f7da99aaf00042b4ed2d8850ed7534492009e (diff) | |
lib: scatterlist: Fix to support no mapped sg
In function sg_split, the second sg_calculate_split will return -EINVAL
when in_mapped_nents is 0.
Indeed there is no need to do second sg_calculate_split and sg_split_mapped
when in_mapped_nents is 0, as in_mapped_nents indicates no mapped entry in
original sgl.
Signed-off-by: Zhou Wang <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions