diff options
author | Brian Behlendorf <[email protected]> | 2024-05-13 17:12:07 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-13 15:12:07 -0700 |
commit | abec7dcd30acfb195bca36334cec4fe82b082b1d (patch) | |
tree | 7684df1b43d0d303eca487e64d8564e11b63f517 /module/os/linux/spl | |
parent | 136c05321140ecefa81a830754c64a7867d033e0 (diff) |
Linux: disable lockdep for a couple of locks
When running a debug kernel with lockdep enabled there
are several locks which report false positives. Set
MUTEX_NOLOCKDEP/RW_NOLOCKDEP to disable these warnings.
Reviewed-by: Brian Atkinson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #16188
Diffstat (limited to 'module/os/linux/spl')
-rw-r--r-- | module/os/linux/spl/spl-procfs-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/linux/spl/spl-procfs-list.c b/module/os/linux/spl/spl-procfs-list.c index 5e073950d..91840ed2c 100644 --- a/module/os/linux/spl/spl-procfs-list.c +++ b/module/os/linux/spl/spl-procfs-list.c @@ -234,7 +234,7 @@ procfs_list_install(const char *module, modulestr = kmem_asprintf("%s/%s", module, submodule); else modulestr = kmem_asprintf("%s", module); - mutex_init(&procfs_list->pl_lock, NULL, MUTEX_DEFAULT, NULL); + mutex_init(&procfs_list->pl_lock, NULL, MUTEX_NOLOCKDEP, NULL); list_create(&procfs_list->pl_list, procfs_list_node_off + sizeof (procfs_list_node_t), procfs_list_node_off + offsetof(procfs_list_node_t, pln_link)); |