RDMA/nes: Correct handling of PBL resources
authorChien Tung <chien.tin.tung@intel.com>
Mon, 3 Nov 2008 05:37:35 +0000 (21:37 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 3 Nov 2008 05:37:35 +0000 (21:37 -0800)
commit35c6d6942c966e6d74ea801d8b5007d7f900ce92
treeaf2ecce7950e1f051033a0bd6dc7c6524d904f0c
parent5880ff19fa29466cb9d7e293710e6aebecfecdd1
RDMA/nes: Correct handling of PBL resources

    * Roll back allocated structures on failures.
    * Use GFP_ATOMIC instead of GFP_KERNEL since we are holding a lock.
    * Acquire nesadapter->pbl_lock when modifying PBL counters.
    * Decrement PBL counters on deallocation.

Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c