]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcu: Stop stall warning from dumping stacks if grace period ends
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 16 Oct 2024 16:19:30 +0000 (09:19 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Wed, 23 Oct 2024 16:00:17 +0000 (18:00 +0200)
commitcbe644aa6fe176bdeb7e175bb194ad644d65319f
treec4ab4e80ff1e85ad29a8e1b6e4e22539a5b0282f
parent26ff1fb02991e1260481185bb5ccab1ee498d5e4
rcu: Stop stall warning from dumping stacks if grace period ends

Currently, once an RCU CPU stall warning decides to dump the stalling
CPUs' stacks, the rcu_dump_cpu_stacks() function persists until it
has gone through the full list.  Unfortunately, if the stalled grace
periods ends midway through, this function will be dumping stacks of
innocent-bystander CPUs that happen to be blocking not the old grace
period, but instead the new one.  This can cause serious confusion.

This commit therefore stops dumping stacks if and when the stalled grace
period ends.

[ paulmck: Apply Joel Fernandes feedback. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/tree_stall.h