From 97547c2f1dc068f0c4a4e74f4138b633b881f08f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Sep 2011 15:21:07 +0000 Subject: [PATCH] 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 --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 77934b74d..d4ff90bc9 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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()) {