scst: Verify dev_exec_cmd_list protection at runtime

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-08-12 01:39:37 +00:00
parent 806b143ce6
commit 4e5548c409

View File

@@ -338,6 +338,8 @@ bool scst_do_check_blocked_dev(struct scst_cmd *cmd)
TRACE_ENTRY();
lockdep_assert_held(&dev->dev_lock);
/*
* We want to have fairness between just unblocked previously blocked
* SCSI atomic cmds and new cmds came after them. Otherwise, the new
@@ -482,6 +484,8 @@ void __scst_check_unblock_dev(struct scst_cmd *cmd)
TRACE_ENTRY();
lockdep_assert_held(&dev->dev_lock);
/*
* We might be called here as part of Copy Manager's check blocking
* undo, so restore all flags in the previous state to allow