diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-04-27 11:59:32 -0400 |
|---|---|---|
| committer | David Teigland <teigland@redhat.com> | 2026-05-08 08:38:03 -0500 |
| commit | a1ed04430f805364eeffe9afacf3ec0d152a8e83 (patch) | |
| tree | 3ef3ab7b7917b9d6352b279958492b12b08224ff /include/linux | |
| parent | 7fd2df204f342fc17d1a0bfcd474b24232fb0f32 (diff) | |
dlm: use hlist_for_each_entry_srcu for SRCU protected lists
The connection and node hash tables in DLM are protected by SRCU, but
the code currently uses hlist_for_each_entry_rcu() for traversal.
While this works functionally, it is semantically incorrect and triggers
warnings when RCU lockdep debugging is enabled, as it expects regular
RCU read-side critical sections.
This patch replaces the incorrect macros with hlist_for_each_entry_srcu()
and adds the appropriate lockdep expressions using srcu_read_lock_held()
to ensure consistency with the underlying locking mechanism.
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
