mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
refscale: Move shutdown from wait_event() to wait_event_idle()
The ref_scale_shutdown() kthread/function uses wait_event() to wait for the refscale test to complete. However, although the read-side tests are normally extremely fast, there is no law against specifying a very large value for the refscale.loops module parameter or against having a slow read-side primitive. Either way, this might well 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. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
This commit is contained in:
committed by
Boqun Feng
parent
ef1ef3d476
commit
6bc6e6b275
@@ -1031,7 +1031,7 @@ ref_scale_cleanup(void)
|
|||||||
static int
|
static int
|
||||||
ref_scale_shutdown(void *arg)
|
ref_scale_shutdown(void *arg)
|
||||||
{
|
{
|
||||||
wait_event(shutdown_wq, shutdown_start);
|
wait_event_idle(shutdown_wq, shutdown_start);
|
||||||
|
|
||||||
smp_mb(); // Wake before output.
|
smp_mb(); // Wake before output.
|
||||||
ref_scale_cleanup();
|
ref_scale_cleanup();
|
||||||
|
Reference in New Issue
Block a user