diff options
author | Zefan Li <lizefan@huawei.com> | 2020-06-02 06:49:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-02 19:59:09 +0200 |
commit | 50d53d7c724330a0dc4df26c45de2a9a886c5d88 (patch) | |
tree | 78f96ea668cdf25c65c7ebea448f5534b0a0fa1e /lib/Kconfig.debug | |
parent | mm/memcg: automatically penalize tasks with high swap use (diff) | |
download | linux-50d53d7c724330a0dc4df26c45de2a9a886c5d88.tar.xz linux-50d53d7c724330a0dc4df26c45de2a9a886c5d88.zip |
memcg: fix memcg_kmem_bypass() for remote memcg charging
While trying to use remote memcg charging in an out-of-tree kernel
module I found it's not working, because the current thread is a
workqueue thread.
As we will probably encounter this issue in the future as the users of
memalloc_use_memcg() grow, and it's nothing wrong for this usage, it's
better we fix it now.
Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Roman Gushchin <guro@fb.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Link: http://lkml.kernel.org/r/1d202a12-26fe-0012-ea14-f025ddcd044a@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions