• Waiman Long's avatar
    rcu-tasks: Use delayed_work to delay rcu_tasks_verify_self_tests() · e72ee5e1
    Waiman Long authored
    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: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    e72ee5e1
tasks.h 63.9 KB