RDMA/nes: Check cqp_avail_reqs is empty after locking the list
commitf3181a10e13ac55e18958d7c48cba6f925c71483
authorFaisal Latif <faisal.latif@intel.com>
Sat, 22 Nov 2008 02:50:55 +0000 (21 20:50 -0600)
committerRoland Dreier <rolandd@cisco.com>
Fri, 5 Dec 2008 19:00:24 +0000 (5 11:00 -0800)
tree675ab6e91c6c5e4fa7e7d479fbdee04038fd75e6
parentabb77256761bc3ee7a21cc28f6f12a938964e83f
RDMA/nes: Check cqp_avail_reqs is empty after locking the list

Between the first empty list check and locking the list, the list can
change.  Check it again after it is locked to make sure the list is
still not empty.

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