From: Faisal Latif Date: Sat, 22 Nov 2008 02:50:46 +0000 (-0600) Subject: RDMA/nes: Avoid race between MPA request and reset event to rdma_cm X-Git-Tag: v2.6.29-rc1~583^2^6~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=183ecfa3091cd4cdda329a7fe89d9544088f517d;p=pandora-kernel.git RDMA/nes: Avoid race between MPA request and reset event to rdma_cm In passive open, after indicating MPA request to rdma_cm, an incoming RST would fire a reset event to rdma_cm causing it to crash, since the current state is not connected. The solution is to wait for nes_accept() or nes_reject() before firing the reset event. If nes_accept() or nes_reject() is already done, then the reset event will be fired when RST is processed. Signed-off-by: Faisal Latif Signed-off-by: Chien Tung Signed-off-by: Roland Dreier --- Reading git-diff-tree failed