Skip waiting for internal commands after abort.

Waiting for their parent commands is required and sufficient.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4417 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-07-23 19:39:33 +00:00
parent aa57dbd8e8
commit e70b729707

View File

@@ -4817,6 +4817,9 @@ void scst_abort_cmd(struct scst_cmd *cmd, struct scst_mgmt_cmd *mcmd,
*/
smp_mb__after_set_bit();
if (cmd->internal)
goto out;
if (cmd->tgt_dev == NULL) {
spin_lock_irqsave(&scst_init_lock, flags);
scst_init_poll_cnt++;
@@ -4901,6 +4904,7 @@ void scst_abort_cmd(struct scst_cmd *cmd, struct scst_mgmt_cmd *mcmd,
unlock:
spin_unlock_irqrestore(&scst_mcmd_lock, flags);
out:
tm_dbg_release_cmd(cmd);
TRACE_EXIT();