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

No differences found