RDMA/nes: Account for freed PBL after HW operation
authorDon Wood <donald.e.wood@intel.com>
Fri, 6 Mar 2009 23:12:09 +0000 (15:12 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 6 Mar 2009 23:12:09 +0000 (15:12 -0800)
commitdae5d13a7e6efcf6e0e00c0febb530b894fa13a3
tree30a99560bc31bf1f8dcad716024ac503b844c625
parentf3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b
RDMA/nes: Account for freed PBL after HW operation

Fix occurrences where the software PBL counts were changed before the
hardware was updated.  This bug allowed another thread to overallocate
the hardware resources.

Add proper PBL accounting in case nes_reg_mr() fails.

Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c