From 83383a839a5f4cb805c398018c3efc4dbb4be569 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 5 Oct 2013 16:57:03 +0000 Subject: [PATCH] qla2x00t: Remove a superfluous msleep() from the term exchange path (merge r4136 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5031 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 43c6bbc21..240996f4f 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -3096,10 +3096,9 @@ out_unlock: spin_unlock_irqrestore(&pha->hardware_lock, flags); if (do_tgt_cmd_done) { - if (!ha_locked && !in_interrupt()) { - msleep(250); /* just in case */ + if (!ha_locked && !in_interrupt()) scst_tgt_cmd_done(cmd->scst_cmd, SCST_CONTEXT_DIRECT); - } else + else scst_tgt_cmd_done(cmd->scst_cmd, SCST_CONTEXT_TASKLET); /* !! At this point cmd could be already freed !! */ } @@ -3174,10 +3173,9 @@ out_unlock: spin_unlock_irqrestore(&pha->hardware_lock, flags); if (do_tgt_cmd_done) { - if (!ha_locked && !in_interrupt()) { - msleep(250); /* just in case */ + if (!ha_locked && !in_interrupt()) scst_tgt_cmd_done(cmd->scst_cmd, SCST_CONTEXT_DIRECT); - } else + else scst_tgt_cmd_done(cmd->scst_cmd, SCST_CONTEXT_TASKLET); /* !! At this point cmd could be already freed !! */ }