lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211123123852.11a84a9e@gandalf.local.home>
Date:   Tue, 23 Nov 2021 12:38:52 -0500
From:   Steven Rostedt <rostedt@...dmis.org>
To:     Aili Yao <yaoaili126@...il.com>
Cc:     mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
        vincent.guittot@...aro.org, dietmar.eggemann@....com,
        bsegall@...gle.com, mgorman@...e.de, linux-kernel@...r.kernel.org,
        yaoaili@...gsoft.com
Subject: Re: [PATCH] sched/isolation: delete redundant
 housekeeping_overridden check

On Tue, 23 Nov 2021 15:45:35 +0800
Aili Yao <yaoaili126@...il.com> wrote:

> From: Aili Yao <yaoaili@...gsoft.com>
> 
> housekeeping_test_cpu is only called by housekeeping_cpu(),
> and in housekeeping_cpu(), there is already one same check;
> 
> So delete the redundant check.
> 
> Signed-off-by: Aili Yao <yaoaili@...gsoft.com>
> ---
>  kernel/sched/isolation.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c
> index 7f06eaf..5c4d533 100644
> --- a/kernel/sched/isolation.c
> +++ b/kernel/sched/isolation.c
> @@ -56,9 +56,8 @@ void housekeeping_affine(struct task_struct *t, enum
> hk_flags flags) 
>  bool housekeeping_test_cpu(int cpu, enum hk_flags flags)
>  {
> -	if (static_branch_unlikely(&housekeeping_overridden))
> -		if (housekeeping_flags & flags)
> -			return cpumask_test_cpu(cpu,
> housekeeping_mask);

Not only is your email client broken, you don't seem to understand what
static_branch_unlikely() is.

NACK.

-- Steve


> +	if (housekeeping_flags & flags)
> +		return cpumask_test_cpu(cpu, housekeeping_mask);
>  	return true;
>  }
>  EXPORT_SYMBOL_GPL(housekeeping_test_cpu);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ