Zefan Li
50d53d7c72
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>
2020-06-02 10:59:09 -07:00
..
2020-05-23 10:26:31 -07:00
2020-05-09 16:07:57 -06:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2019-12-01 12:59:09 -08:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2020-04-07 10:43:41 -07:00
2017-11-02 11:10:55 +01:00
2020-06-02 10:59:06 -07:00
2020-04-07 10:43:42 -07:00
2020-01-31 10:30:38 -08:00
2020-06-02 10:59:06 -07:00
2019-07-12 11:05:43 -07:00
2020-06-02 10:59:08 -07:00
2019-09-25 17:51:41 -07:00
2019-06-19 17:09:52 +02:00
2020-04-02 09:35:27 -07:00
2020-06-02 10:59:08 -07:00
2019-12-10 10:12:55 +01:00
2020-03-30 16:58:36 -03:00
2020-04-07 10:43:39 -07:00
2020-04-07 10:43:41 -07:00
2020-04-21 11:11:55 -07:00
2019-12-01 12:59:09 -08:00
2019-10-19 06:32:32 -04:00
2020-06-02 10:59:06 -07:00
2019-06-19 17:09:08 +02:00
2020-04-08 21:03:40 -07:00
2020-02-04 03:05:25 +00:00
2020-05-28 11:35:40 -07:00
2019-06-05 17:37:06 +02:00
2020-04-02 09:35:26 -07:00
2020-04-21 11:11:55 -07:00
2020-04-07 10:43:41 -07:00
2019-11-02 12:39:12 -07:00
2020-04-24 13:28:03 -07:00
2020-04-07 10:43:38 -07:00
2020-04-02 09:35:29 -07:00
2020-04-10 15:36:21 -07:00
2020-06-02 10:59:09 -07:00
2019-09-24 15:54:08 -07:00
2020-04-10 15:36:21 -07:00
2020-04-07 10:43:38 -07:00
2020-04-10 15:36:21 -07:00
2020-04-08 21:03:40 -07:00
2019-03-05 21:07:20 -08:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2020-06-02 10:59:08 -07:00
2020-02-04 03:05:25 +00:00
2019-09-25 17:51:41 -07:00
2020-04-07 10:43:41 -07:00
2020-04-10 15:36:21 -07:00
2017-03-02 08:42:38 +01:00
2020-02-04 03:05:26 +00:00
2020-03-21 18:56:06 -07:00
2017-11-02 11:10:55 +01:00
2020-04-10 15:36:21 -07:00
2020-05-14 10:00:35 -07:00
2019-09-25 17:51:41 -07:00
2020-03-21 18:56:06 -07:00
2020-01-31 10:30:38 -08:00
2020-06-02 10:59:08 -07:00
2020-04-02 09:35:29 -07:00
2020-04-07 10:43:40 -07:00
2019-06-29 16:43:45 +08:00
2020-02-03 08:05:37 -05:00
2020-04-07 10:43:38 -07:00
2019-10-19 06:32:31 -04:00
2019-09-24 15:54:08 -07:00
2020-04-07 10:43:39 -07:00
2020-04-07 10:43:38 -07:00
2020-01-31 10:30:38 -08:00
2020-06-02 10:59:08 -07:00
2020-02-04 03:05:25 +00:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2020-04-01 10:09:12 -07:00
2019-06-05 17:37:16 +02:00
2020-05-07 19:27:21 -07:00
2019-12-01 06:29:19 -08:00
2020-03-25 10:04:01 -05:00
2020-02-04 03:05:25 +00:00
2020-06-02 10:59:07 -07:00
2020-04-07 10:43:41 -07:00
2019-06-05 17:37:17 +02:00
2020-04-21 11:11:56 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:38 -07:00
2020-06-02 10:59:06 -07:00
2020-01-13 18:19:02 -08:00
2020-04-02 09:35:28 -07:00
2019-10-07 15:47:20 -07:00
2020-06-02 10:59:06 -07:00
2019-07-18 17:08:07 -07:00
2020-04-07 10:43:40 -07:00
2017-11-02 11:10:55 +01:00
2020-04-02 09:35:27 -07:00
2020-06-02 10:59:08 -07:00
2020-04-07 10:43:41 -07:00
2020-06-02 10:59:09 -07:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2020-04-07 10:43:39 -07:00
2019-12-01 06:29:19 -08:00
2018-09-13 15:18:04 -10:00
2020-04-21 11:11:56 -07:00
2020-04-02 09:35:31 -07:00
2020-06-02 10:59:08 -07:00
2020-06-02 10:59:08 -07:00
2019-12-01 12:59:07 -08:00
2020-05-28 11:35:40 -07:00
2019-05-21 10:50:45 +02:00
2019-09-24 15:54:12 -07:00
2020-04-07 10:43:41 -07:00
2020-04-07 10:43:41 -07:00