Re: [PATCH] memcg: replace in_interrupt() with !in_task()

From: Shakeel Butt
Date: Fri Jan 28 2022 - 11:20:24 EST


On Fri, Jan 28, 2022 at 4:23 AM Michal Hocko <mhocko@xxxxxxxx> wrote:
>
> On Thu 27-01-22 08:26:36, Shakeel Butt wrote:
> > Replace the deprecated in_interrupt() with !in_task() because
> > in_interrupt() returns true for BH disabled even if the call happens in
> > the task context. in_task() is the right interface to differentiate
> > task context from NMI, hard IRQ and softirq contexts.
>
> Makes sense. I do not think this will have any visible effect. Except
> for removing a deprecated call, right?

Correct, that is my understanding as well.