rcu-tasks: Use delayed_work to delay rcu_tasks_verify_self_tests()
authorWaiman Long <longman@redhat.com>
Tue, 14 Jun 2022 12:06:20 +0000 (08:06 -0400)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 21 Jun 2022 22:49:38 +0000 (15:49 -0700)
commite72ee5e1a866b85cb6c3d4c80a1125976020a7e8
tree99f230a3ff7f8113b469003d891683352cb9886c
parent1cf1144e8473e8c3180ac8b91309e29b6acfd95f
rcu-tasks: Use delayed_work to delay rcu_tasks_verify_self_tests()

Commit 2585014188d5 ("rcu-tasks: Be more patient for RCU Tasks
boot-time testing") fixes false positive rcu_tasks verification check
failure by repeating the test once every second until timeout using
schedule_timeout_uninterruptible().

Since rcu_tasks_verify_selft_tests() is called from do_initcalls()
as a late_initcall, this has the undesirable side effect of delaying
other late_initcall's queued after it by a second or more.  Fix this by
instead using delayed_work to repeat the verification check.

Fixes: 2585014188d5 ("rcu-tasks: Be more patient for RCU Tasks boot-time testing")
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h