]> git.openfabrics.org - ~shefty/rdma-win.git/commit
[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)
commit07c08bcc788244c876f52207080d50105750e412
tree78acfd4f6e5b2948c9b666e98286b4afc119f146
parentacb6179c5f725789dd816f35b82f7f007531d5f2
[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@134 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/ulp/opensm/user/opensm/osm_sm_mad_ctrl.c
trunk/ulp/opensm/user/opensm/osm_vl15intf.c