From dae7bfc068e02b69116a61e8d725df67cd91d70b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 11 Jan 2012 19:16:18 +0000 Subject: [PATCH] ib_srpt: Add a comment git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4062 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index bab9e9aca..4451ec467 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2023,6 +2023,10 @@ static int srpt_compl_thread(void *arg) ch->sess_name); scst_unregister_session(ch->scst_sess, false, srpt_free_ch); + /* + * Some HCAs can queue send completions after the Last WQE + * event. Make sure to process these work completions. + */ while (!kthread_should_stop()) { set_current_state(TASK_INTERRUPTIBLE); srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,