From 48bf0d2bf7559c6b6a6625f0b5497de19ae1d997 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 19 Feb 2007 10:46:53 +0000 Subject: [PATCH] Minor fix for ABORTed on SIRQ commands git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@88 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index fe17f7608..be0f5e060 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -924,7 +924,7 @@ out_unlock: if (!ha_locked) spin_unlock_irqrestore(&ha->hardware_lock, flags); - if (do_tgt_cmd_done) { + if (do_tgt_cmd_done && !in_interrupt()) { msleep(250); scst_tgt_cmd_done(cmd->scst_cmd); /* !! At this point cmd could be already freed !! */