mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user