Skip to content
Snippets Groups Projects
Commit 9ca6bb80 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Greg Kroah-Hartman
Browse files

rcuscale: Move shutdown from wait_event() to wait_event_idle()


[ Upstream commit ef1ef3d4 ]

The rcu_scale_shutdown() and kfree_scale_shutdown() kthreads/functions
use wait_event() to wait for the rcuscale test to complete.  However,
each updater thread in such a test waits for at least 100 grace periods.
If each grace period takes more than 1.2 seconds, which is long, but
not insanely so, this can trigger the hung-task timeout.

This commit therefore replaces those wait_event() calls with calls to
wait_event_idle(), which do not trigger the hung-task timeout.

Reported-by: default avatarkernel test robot <yujie.liu@intel.com>
Reported-by: default avatarLiam Howlett <liam.howlett@oracle.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Tested-by: default avatarYujie Liu <yujie.liu@intel.com>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Stable-dep-of: 23fc8df2 ("rcu/rcuscale: Stop kfree_scale_thread thread(s) after unloading rcuscale")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f87cccb7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment