mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
scst: take scst_mutex before calling scst_del_free_acg() in exit_scst()
scst_del_free_acg() does lockdep_assert_held(&scst_mutex), so we'd better take the lock before calling it. Signed-off-by: David Butterfield <dab21774@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2859,7 +2859,9 @@ static void __exit exit_scst(void)
|
||||
scsi_unregister_interface(&scst_interface);
|
||||
|
||||
#ifdef CONFIG_SCST_PROC
|
||||
mutex_lock(&scst_mutex);
|
||||
scst_del_free_acg(scst_default_acg, false);
|
||||
mutex_unlock(&scst_mutex);
|
||||
#endif
|
||||
|
||||
scst_sgv_pools_deinit();
|
||||
|
||||
Reference in New Issue
Block a user