X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fkfence%2Fcore.c;h=4d21ac44d5d35cc08fcf6cf8b073dddf7f458f6e;hb=8fd0e995cc7b6a7a8a40bc03d52a2cd445beeff4;hp=e18fbbd5d9b4863ad90bc882570c5b53025c57ad;hpb=2059c40aded724b3af139abb55cabeab5e0f5878;p=linux-2.6-microblaze.git diff --git a/mm/kfence/core.c b/mm/kfence/core.c index e18fbbd5d9b4..4d21ac44d5d3 100644 --- a/mm/kfence/core.c +++ b/mm/kfence/core.c @@ -627,10 +627,10 @@ static void toggle_allocation_gate(struct work_struct *work) * During low activity with no allocations we might wait a * while; let's avoid the hung task warning. */ - wait_event_timeout(allocation_wait, atomic_read(&kfence_allocation_gate), - sysctl_hung_task_timeout_secs * HZ / 2); + wait_event_idle_timeout(allocation_wait, atomic_read(&kfence_allocation_gate), + sysctl_hung_task_timeout_secs * HZ / 2); } else { - wait_event(allocation_wait, atomic_read(&kfence_allocation_gate)); + wait_event_idle(allocation_wait, atomic_read(&kfence_allocation_gate)); } /* Disable static key and reset timer. */