From 851d6c2008c94e74206c3176615c67b49d75fb05 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 9 Nov 2011 02:47:23 +0000 Subject: [PATCH] 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 --- scst/src/dev_handlers/scst_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_user.c b/scst/src/dev_handlers/scst_user.c index c519526c8..78f964706 100644 --- a/scst/src/dev_handlers/scst_user.c +++ b/scst/src/dev_handlers/scst_user.c @@ -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)