diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index f5b7eb101..70c3f69c8 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -5597,6 +5597,8 @@ void scst_unblock_aborted_cmds(const struct scst_tgt *tgt, 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;