From 065a1d7529ef3f421781dae368188ef4ec4cf63e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 23 May 2012 08:24:05 +0000 Subject: [PATCH] ib_srpt: Add a comment git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4315 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 8f83d26f4..d9974bef4 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2076,6 +2076,11 @@ static int srpt_compl_thread(void *arg) list_del(&ch->list); spin_unlock_irq(&sdev->spinlock); + /* + * Note: if a DREQ is received after ch->dreq_received has been read, + * ib_destroy_cm_id() will send a DREP. + * + */ if (ch->dreq_received) { if (ib_send_cm_drep(ch->cm_id, NULL, 0) >= 0) PRINT_INFO("Received DREQ and sent DREP for session %s",