ib_srpt: Add a comment

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4315 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-05-23 08:24:05 +00:00
parent 907bc8222d
commit 065a1d7529

View File

@@ -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",