|
From: <bva...@us...> - 2015-06-17 00:01:26
|
Revision: 6357
http://sourceforge.net/p/scst/svn/6357
Author: bvassche
Date: 2015-06-17 00:01:24 +0000 (Wed, 17 Jun 2015)
Log Message:
-----------
scst_targ: Add more debug code in scst_unblock_aborted_cmds()
Use lockdep to verify that the caller holds scst_mutex if the
scst_mutex_held argument has not been set.
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2015-06-17 00:00:40 UTC (rev 6356)
+++ trunk/scst/src/scst_targ.c 2015-06-17 00:01:24 UTC (rev 6357)
@@ -5617,6 +5617,8 @@
if (!scst_mutex_held)
mutex_lock(&scst_mutex);
+ else
+ lockdep_assert_held(&scst_mutex);
list_for_each_entry(dev, &scst_dev_list, dev_list_entry) {
struct scst_cmd *cmd, *tcmd;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|