lkml.org 
[lkml]   [2022]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] mm/kfence: remove hung_task cruft
On Wed, 9 Nov 2022 at 10:26, Pavankumar Kondeti
<quic_pkondeti@quicinc.com> wrote:
>
> commit fdf756f71271 ("sched: Fix more TASK_state comparisons") makes
> hung_task not to monitor TASK_IDLE tasks. The special handling to
> workaround hung_task warnings is not required anymore.
>
> Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>

Good riddance, thanks.

Reviewed-by: Marco Elver <elver@google.com>

> ---
> mm/kfence/core.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> diff --git a/mm/kfence/core.c b/mm/kfence/core.c
> index 1417888..08f5bd6 100644
> --- a/mm/kfence/core.c
> +++ b/mm/kfence/core.c
> @@ -26,7 +26,6 @@
> #include <linux/random.h>
> #include <linux/rcupdate.h>
> #include <linux/sched/clock.h>
> -#include <linux/sched/sysctl.h>
> #include <linux/seq_file.h>
> #include <linux/slab.h>
> #include <linux/spinlock.h>
> @@ -799,16 +798,7 @@ static void toggle_allocation_gate(struct work_struct *work)
> /* Enable static key, and await allocation to happen. */
> static_branch_enable(&kfence_allocation_key);
>
> - if (sysctl_hung_task_timeout_secs) {
> - /*
> - * During low activity with no allocations we might wait a
> - * while; let's avoid the hung task warning.
> - */
> - wait_event_idle_timeout(allocation_wait, atomic_read(&kfence_allocation_gate),
> - sysctl_hung_task_timeout_secs * HZ / 2);
> - } else {
> - wait_event_idle(allocation_wait, atomic_read(&kfence_allocation_gate));
> - }
> + wait_event_idle(allocation_wait, atomic_read(&kfence_allocation_gate));
>
> /* Disable static key and reset timer. */
> static_branch_disable(&kfence_allocation_key);
> --
> 2.7.4
>

\
 
 \ /
  Last update: 2022-11-14 08:02    [W:0.072 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site