]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/srp: fix mr allocation when the device supports sg gaps
authorIsrael Rukshin <israelr@mellanox.com>
Wed, 28 Dec 2016 10:48:28 +0000 (12:48 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 16:03:17 +0000 (11:03 -0500)
commitad8e66b4a80182174f73487ed25fd2140cf43361
tree10f7a56fb264e5f62e4629584144d01457ad040e
parent3bcf96e0183f5c863657cb6ae9adad307a0f6071
IB/srp: fix mr allocation when the device supports sg gaps

If the device support arbitrary sg list mapping (device cap
IB_DEVICE_SG_GAPS_REG set) we allocate the memory regions with
IB_MR_TYPE_SG_GAPS.

Fixes: 509c5f33f4f6 ("IB/srp: Prevent mapping failures")
Cc: <stable@vger.kernel.org> # 4.7+
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c