diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 3bf505191..64424306f 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2753,13 +2753,16 @@ out: return; } -/* The activity supposed to be suspended and scst_mutex held */ void scst_report_luns_changed(struct scst_acg *acg) { struct scst_session *sess; TRACE_ENTRY(); + /* To protect acg_sess_list */ + scst_assert_activity_suspended(); + lockdep_assert_held(&scst_mutex); + TRACE_DBG("REPORTED LUNS DATA CHANGED (acg %s)", acg->acg_name); list_for_each_entry(sess, &acg->acg_sess_list, acg_sess_list_entry) {