diff options
| author | Shakeel Butt <shakeelb@google.com> | 2022-03-23 00:40:07 +0300 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-23 01:57:02 +0300 |
| commit | 086f694a75e1a283a11f9afa7bae258f30892b81 (patch) | |
| tree | 831e3fb24ce25a92ffd578a09b3274dd28a3d1b4 /include/linux | |
| parent | 4bfa8ada803af1d073c76b43d079eee72a1d442a (diff) | |
| download | linux-086f694a75e1a283a11f9afa7bae258f30892b81.tar.xz | |
memcg: replace in_interrupt() with !in_task()
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.
Link: https://lkml.kernel.org/r/20220127162636.3461256-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vasily Averin <vvs@virtuozzo.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
