task_mgmt_fn() callback now called under lock and IRQs disabled, so we

need to reschedule to thread during commands unjamming



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-11-09 02:47:23 +00:00
parent cd563e1fb7
commit 851d6c2008
+1 -1
View File
@@ -2256,7 +2256,7 @@ static void dev_user_unjam_cmd(struct scst_user_cmd *ucmd, int busy,
}
ucmd->cmd->scst_cmd_done(ucmd->cmd, SCST_CMD_STATE_DEFAULT,
SCST_CONTEXT_DIRECT);
SCST_CONTEXT_THREAD);
/* !! At this point cmd and ucmd can be already freed !! */
if (flags != NULL)