ib_srpt: Relax a WARN_ON() statement such that it doesn't fire needlessly

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-09-17 15:21:07 +00:00
parent 5f0326aa3d
commit 97547c2f1d
+1 -1
View File
@@ -1997,9 +1997,9 @@ static int srpt_compl_thread(void *arg)
}
set_current_state(TASK_RUNNING);
WARN_ON(ch->state <= CH_LIVE);
TRACE_DBG("ch %s: about to invoke scst_unregister_session()",
ch->sess_name);
WARN_ON(ch->state != CH_RELEASING);
scst_unregister_session(ch->scst_sess, false, srpt_free_ch);
while (!kthread_should_stop()) {