linux/drivers/infiniband/ulp/iser
Israel Rukshin 57b26497fa 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: 3940588500 ("IB/iser: Port to new fast registration API")
Fixes: bfe066e256 ("IB/iser: Reuse ib_sg_to_pages")
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-01-18 14:12:24 -07:00
..
iscsi_iser.c scsi: flip the default on use_clustering 2018-12-18 23:13:12 -05:00
iscsi_iser.h IB/iser: use T10-PI check mask definitions from core layer 2018-06-04 09:19:24 -06:00
iser_initiator.c IB/iser: Fix possible NULL deref at iser_inv_desc() 2018-09-28 09:53:49 -06:00
iser_memory.c IB/iser: Pass the correct number of entries for dma mapped SGL 2019-01-18 14:12:24 -07:00
iser_verbs.c iser: set sector for ambiguous mr status errors 2018-11-21 16:03:43 -07:00
Kconfig Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
Makefile