Shiraz Saleem d0b5c01bb4 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 <jgg@mellanox.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-04-08 13:05:25 -03:00
..
2018-12-12 07:40:16 -07:00
2019-02-19 20:52:19 -07:00
2019-03-27 15:52:01 -03:00
2016-05-13 13:37:18 -04:00
2019-04-08 13:05:25 -03:00
2018-12-12 07:40:16 -07:00
2016-03-03 10:20:25 -05:00
2019-03-11 20:06:18 -07:00
2018-12-12 07:40:16 -07:00
2019-03-26 11:50:29 -03:00
2016-03-03 10:20:25 -05:00