mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user