Oops, the previous commit was wrong. Fix it.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@89 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2007-02-19 12:55:54 +00:00
parent 48bf0d2bf7
commit 76b6ad80ff

View File

@@ -924,8 +924,9 @@ out_unlock:
if (!ha_locked)
spin_unlock_irqrestore(&ha->hardware_lock, flags);
if (do_tgt_cmd_done && !in_interrupt()) {
msleep(250);
if (do_tgt_cmd_done) {
if (!in_interrupt())
msleep(250);
scst_tgt_cmd_done(cmd->scst_cmd);
/* !! At this point cmd could be already freed !! */
}