IB/usnic: Use GFP_ATOMIC under spinlock
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Jan 2014 10:32:49 +0000 (13:32 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 21 Jan 2014 18:47:56 +0000 (10:47 -0800)
commit8ce96afa8239f13bdf5ab35839bac46c103bbedc
tree6dceb2ad7ea02becf88378f008561885c2c10de4
parentd1db47c5eed89a1c8b60e780aeadd870bb0d3894
IB/usnic: Use GFP_ATOMIC under spinlock

This is called from qp_grp_and_vf_bind() and we are holding the
vf->lock so the allocation can't sleep.

Fixes: e3cf00d0a87f ('IB/usnic: Add Cisco VIC low-level hardware driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/usnic/usnic_uiom.c