]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcu: Permit start_poll_synchronize_rcu*() with interrupts disabled
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 9 Oct 2024 18:00:42 +0000 (11:00 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 12 Nov 2024 20:44:30 +0000 (21:44 +0100)
commita30763800b04e384f4123d984997bf5c6a2179a9
tree31a4558a20f3f2aa980e998fc18157f76b19aaec
parent481aa5fca02a2ee85ca76571becca31f816c2420
rcu: Permit start_poll_synchronize_rcu*() with interrupts disabled

The header comment for both start_poll_synchronize_rcu() and
start_poll_synchronize_rcu_full() state that interrupts must be enabled
when calling these two functions, and there is a lockdep assertion in
start_poll_synchronize_rcu_common() enforcing this restriction.  However,
there is no need for this restrictions, as can be seen in call_rcu(),
which does wakeups when interrupts are disabled.

This commit therefore removes the lockdep assertion and the comments.

Reported-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/tree.c