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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:01 +0000 (09:20 +0100)
commitd2e3e3c3c14ba62eeff4a8072789775ebdf69858
tree06eda81519cb541bd1cc6de5673772d04bfd14ff
parent64694b276d74c653051637caa4bfa5e8c27b30ad
RDMA/vmw_pvrdma: Use atomic memory allocation in create AH

[ Upstream commit a276a4d93bf1580d737f38d1810e5f4b166f3edd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c