OSDN Git Service

RDMA/vmw_pvrdma: Use atomic memory allocation in create AH
authorGal Pressman <galpress@amazon.com>
Mon, 10 Dec 2018 15:17:25 +0000 (17:17 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Dec 2018 21:38:17 +0000 (14:38 -0700)
commita276a4d93bf1580d737f38d1810e5f4b166f3edd
tree93000b0848093a480bf7767bfe6e2f8b273f56c9
parent59590b8ad2eea9543a639880fc0d2c139b66d164
RDMA/vmw_pvrdma: Use atomic memory allocation in create AH

Create address handle callback should not sleep, use GFP_ATOMIC instead of
GFP_KERNEL for memory allocation.

Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver")
Cc: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c