diff options
| author | Israel Rukshin <[email protected]> | 2019-01-17 15:45:45 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-01-18 14:12:24 -0700 |
| commit | 57b26497fabe1b9379b59fbc7e35e608e114df16 (patch) | |
| tree | 25988f260073801842d8a24305afb16a139bd886 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 790b57f686e29b93616b3d13b38043f5ec29fa0a (diff) | |
IB/iser: Pass the correct number of entries for dma mapped SGL
ib_dma_map_sg() augments the SGL into a 'dma mapped SGL'. This process may
change the number of entries and the lengths of each entry.
Code that touches dma_address is iterating over the 'dma mapped SGL' and
must use dma_nents which returned from ib_dma_map_sg().
ib_sg_to_pages() and ib_map_mr_sg() are using dma_address so they must use
dma_nents.
Fixes: 39405885005a ("IB/iser: Port to new fast registration API")
Fixes: bfe066e256d5 ("IB/iser: Reuse ib_sg_to_pages")
Signed-off-by: Israel Rukshin <[email protected]>
Reviewed-by: Max Gurtovoy <[email protected]>
Acked-by: Sagi Grimberg <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions