diff options
| author | Shiraz Saleem <[email protected]> | 2019-04-04 10:22:47 -0500 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-04-08 13:05:25 -0300 |
| commit | d0b5c01bb446f87e94265b172c00f4e89829116d (patch) | |
| tree | 0c8c764b7b0f8f84e8f7498b149ce0be6711f99f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | e1c9a0dc2939e7d51926265123ee93b1caa5e93e (diff) | |
RDMA/umem: Use correct value for SG entries in sg_copy_to_buffer()
With page combining, the assumption that number of SG entries in umem SGL
equal to number of system pages in umem no longer holds.
umem->sg_nents tracks the SG entries in umem SGL. Use it in
sg_pcopy_to_buffer() as opposed to ib_umem_num_pages(umem).
Fixes: d10bcf947a3e ("RDMA/umem: Combine contiguous PAGE_SIZE regions in SGEs")
Reported-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Shiraz Saleem <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions