]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Don't require LOCAL_DMA_LKEY support for fastreg
authorSagi Grimberg <sagig@mellanox.com>
Tue, 6 Oct 2015 16:52:37 +0000 (19:52 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 6 Oct 2015 18:23:00 +0000 (14:23 -0400)
commit30e560b0e7ae6b8a783db1794f38df6ee75af348
treefeea7955246663f847bafb3e6b6b8c3efae7029f
parent7dd1704dc045d84c1368fd72c070901e3aebf559
xprtrdma: Don't require LOCAL_DMA_LKEY support for fastreg

There is no need to require LOCAL_DMA_LKEY support as the
PD allocation makes sure that there is a local_dma_lkey. Also
correctly set a return value in error path.

This caused a NULL pointer dereference in mlx5 which removed
the support for LOCAL_DMA_LKEY.

Fixes: 3b953a00951c ("xprtrdma: Replace global lkey with lkey local to PD")
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
net/sunrpc/xprtrdma/verbs.c