diff options
author | Don Wood <donald.e.wood@intel.com> | 2009-09-05 20:36:37 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-09-05 20:36:37 -0700 |
commit | ba0c5d9a8975cf740a4a4b8c579cc4b325f8b852 (patch) | |
tree | 7b0390138f2d75d19a03916bd3392d6503ef2310 /drivers/infiniband | |
parent | 873fcdd4bfc75880888a7d148a71d70ed87c9ebf (diff) | |
download | op-kernel-dev-ba0c5d9a8975cf740a4a4b8c579cc4b325f8b852.zip op-kernel-dev-ba0c5d9a8975cf740a4a4b8c579cc4b325f8b852.tar.gz |
RDMA/nes: Change memory allocation for cqp request to GFP_ATOMIC
The routine to allocate a cqp request is not called from process
context code. Since it is not OK to sleep, it needs to use GFP_ATOMIC
not GFP_KERNEL.
Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_utils.c b/drivers/infiniband/hw/nes/nes_utils.c index a282031..b34072b 100644 --- a/drivers/infiniband/hw/nes/nes_utils.c +++ b/drivers/infiniband/hw/nes/nes_utils.c @@ -548,7 +548,7 @@ struct nes_cqp_request *nes_get_cqp_request(struct nes_device *nesdev) spin_unlock_irqrestore(&nesdev->cqp.lock, flags); } if (cqp_request == NULL) { - cqp_request = kzalloc(sizeof(struct nes_cqp_request), GFP_KERNEL); + cqp_request = kzalloc(sizeof(struct nes_cqp_request), GFP_ATOMIC); if (cqp_request) { cqp_request->dynamic = 1; INIT_LIST_HEAD(&cqp_request->list); |