From ada7c26a2e8eeabef001570e55551dde556e7154 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 24 Mar 2014 12:03:09 +0000 Subject: [PATCH] ib_srpt: Fix a kernel warning Avoid that the following (very rare) kernel warning is reported when an ib_srpt target port is disabled while I/O is ongoing: WARNING: CPU: 3 PID: 12259 at srpt/src/ib_srpt.c:3334 srpt_xmit_response+0x165/0x300 [ib_srpt]() Unexpected command state 6 Call Trace: [] dump_stack+0x4e/0x7a [] warn_slowpath_common+0x7d/0xa0 [] warn_slowpath_fmt+0x4c/0x50 [] srpt_xmit_response+0x165/0x300 [ib_srpt] [] scst_xmit_response+0xbc/0x560 [scst] [] scst_process_active_cmd+0x29d/0x7b0 [scst] [] scst_do_job_active+0x89/0x1a0 [scst] [] scst_cmd_thread+0x15f/0x350 [scst] [] kthread+0xed/0x110 [] ret_from_fork+0x7c/0xb0 ---[ end trace 591f7af7d006fc0e ]--- git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5368 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index a16532e09..7190042ce 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1335,6 +1335,7 @@ static void srpt_abort_cmd(struct srpt_send_ioctx *ioctx, ioctx->state = SRPT_STATE_DATA_IN; break; case SRPT_STATE_DATA_IN: + break; case SRPT_STATE_CMD_RSP_SENT: case SRPT_STATE_MGMT_RSP_SENT: ioctx->state = SRPT_STATE_DONE;