|
From: <bva...@us...> - 2019-08-12 01:39:40
|
Revision: 8500
http://sourceforge.net/p/scst/svn/8500
Author: bvassche
Date: 2019-08-12 01:39:37 +0000 (Mon, 12 Aug 2019)
Log Message:
-----------
scst: Verify dev_exec_cmd_list protection at runtime
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2019-08-09 17:31:33 UTC (rev 8499)
+++ trunk/scst/src/scst_targ.c 2019-08-12 01:39:37 UTC (rev 8500)
@@ -338,6 +338,8 @@
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 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|