mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
scst: Fix race leading to extra device unblocking in mix of strictly serialized and TM commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -12997,8 +12997,6 @@ void scst_unblock_dev(struct scst_device *dev)
|
||||
break;
|
||||
}
|
||||
local_irq_restore_nort(flags);
|
||||
|
||||
dev->strictly_serialized_cmd_waiting = 0;
|
||||
}
|
||||
|
||||
sBUG_ON(dev->block_count < 0);
|
||||
|
||||
@@ -547,6 +547,7 @@ void __scst_check_unblock_dev(struct scst_cmd *cmd)
|
||||
TRACE_BLOCK("Strictly serialized cmd waiting: "
|
||||
"unblocking dev %s", dev->virt_name);
|
||||
scst_unblock_dev(dev);
|
||||
dev->strictly_serialized_cmd_waiting = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user