mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 11:10:44 +00:00
scoutfs: stop spurious lockdep warning from dlm
The fs/dlm code has a harmless but unannotated inversion between connection and socket locking that triggers during shutdown and disables lockdep. We don't want it to mask our warnings during testing that may happen after the first shared unmount so we disable lockdep around the dlm shutdown. It's not ideal but then neither are distro kernels that ship with lockdep warnings. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -826,8 +826,17 @@ void scoutfs_lock_destroy(struct super_block *sb)
|
||||
*/
|
||||
free_lock_tree(sb);
|
||||
|
||||
if (linfo->dlmglue_online)
|
||||
if (linfo->dlmglue_online) {
|
||||
/*
|
||||
* fs/dlm has a harmless but unannotated
|
||||
* inversion between their connection and socket
|
||||
* locking that triggers during shutdown and
|
||||
* disables lockdep.
|
||||
*/
|
||||
lockdep_off();
|
||||
ocfs2_dlm_shutdown(&linfo->dlmglue, 0);
|
||||
lockdep_on();
|
||||
}
|
||||
|
||||
sbi->lock_info = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user