[OpenSM] - Fix race bug - looking at the qp0_mads_outstanding was done in a lock
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 31 Oct 2005 12:20:45 +0000 (12:20 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 31 Oct 2005 12:20:45 +0000 (12:20 +0000)
commitef994ad91fa0d68d9d3d4adc5020c68c12c57dd7
tree4c3b47f37e6beada64f975e364d0ceb5aca4d8a7
parentdec7784bfeceb76de8e6f79b0b9d5aafbb8aa337
[OpenSM] - Fix race bug - looking at the qp0_mads_outstanding was done in a lock
after decrementing it.
The signaling was done according to the value viewed on the qp0_mads_outstanding, and not on the new value updated.
As result - can receive a signal of NO_PENDING_TRANSACTIONS outside of its place.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@134 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/opensm/user/opensm/osm_sm_mad_ctrl.c
ulp/opensm/user/opensm/osm_vl15intf.c