diff options
author | David Howells <dhowells@redhat.com> | 2022-07-28 12:31:06 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-07-28 20:06:49 +0300 |
commit | e0339f036ef4beb9b20f0b6532a1e0ece7f594c6 (patch) | |
tree | 2d768f0d5ac77df7c883295ba1842ab09cb38c70 /Documentation | |
parent | 6e7765cb477a9753670d4351d14de93f1e9dbbd4 (diff) | |
download | linux-e0339f036ef4beb9b20f0b6532a1e0ece7f594c6.tar.xz |
watch_queue: Fix missing rcu annotation
Since __post_watch_notification() walks wlist->watchers with only the
RCU read lock held, we need to use RCU methods to add to the list (we
already use RCU methods to remove from the list).
Fix add_watch_to_object() to use hlist_add_head_rcu() instead of
hlist_add_head() for that list.
Fixes: c73be61cede5 ("pipe: Add general notification queue support")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions