DORMANTno replies

[PATCH 6/13] DAPL v2.0: common: RSP service points incorrectly freed during CR callback

From: Davis, Arlin R <hidden>
Date: 2012-01-13 23:55:14
Subsystem: the rest · Maintainer: Linus Torvalds

The RSP service point is being removed because of improper
state/flag checking during CR callback. Add state check
for DAPL_SP_STATE_RSP_LISTENING.

Signed-off-by: Arlin Davis <redacted>
---
 dapl/common/dapl_cr_callback.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dapl/common/dapl_cr_callback.c b/dapl/common/dapl_cr_callback.c
index c58444b..1f6dd6d 100644
--- a/dapl/common/dapl_cr_callback.c
+++ b/dapl/common/dapl_cr_callback.c
@@ -499,7 +499,8 @@ DAPL_EP *dapli_get_sp_ep(IN dp_ib_cm_handle_t ib_cm_handle,
 		 * up after the last CR is removed
 		 */
 		if (sp_ptr->listening != DAT_TRUE && sp_ptr->cr_list_count == 0
-		    && sp_ptr->state != DAPL_SP_STATE_FREE) {
+		    && sp_ptr->state != DAPL_SP_STATE_FREE
+		    && sp_ptr->state != DAPL_SP_STATE_RSP_LISTENING) {
 			dapl_dbg_log(DAPL_DBG_TYPE_CM,
 				     "--> dapli_get_sp_ep! disconnect dump sp: %p \n",
 				     sp_ptr);
-- 
1.7.3



N�����r��y���b�X��ǧv�^�)޺{.n�+����{��ٚ�{ay�
ʇڙ�,j��f���h�����/oSc��ڳ9�u�����&jw��(�階�ݢj"���m�����z�ޖ���f���h���~�m�
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help