Miaohe Lin
b41fd8f5d2
mm, slub: fix incorrect memcg slab count for bulk free
...
commit 3ddd60268c24bcac9d744404cc277e9dc52fe6b6 upstream.
kmem_cache_free_bulk() will call memcg_slab_free_hook() for all objects
when doing bulk free. So we shouldn't call memcg_slab_free_hook() again
for bulk free to avoid incorrect memcg slab count.
Link: https://lkml.kernel.org/r/20210916123920.48704-6-linmiaohe@huawei.com
Fixes: d1b2cf6cb84a ("mm: memcg/slab: uncharge during kmem_cache_free_bulk()")
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Bharata B Rao <bharata@linux.ibm.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Faiyaz Mohammed <faiyazm@codeaurora.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Roman Gushchin <guro@fb.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-27 09:56:53 +02:00
..
2021-01-27 11:55:23 +01:00
2020-09-24 13:43:39 -06:00
2020-07-10 13:54:00 -07:00
2020-08-12 10:57:57 -07:00
2020-09-01 09:19:43 +02:00
2021-03-04 11:38:38 +01:00
2021-07-14 16:56:13 +02:00
2020-10-13 18:38:29 -07:00
2020-10-13 18:38:32 -07:00
2020-10-13 18:38:29 -07:00
2021-02-10 09:29:21 +01:00
2020-06-09 09:39:14 -07:00
2020-08-14 19:56:56 -07:00
2020-10-18 09:27:09 -07:00
2021-07-14 16:55:42 +02:00
2020-10-16 11:11:18 -07:00
2021-09-18 13:40:36 +02:00
2021-07-25 14:36:18 +02:00
2021-03-30 14:31:54 +02:00
2021-09-18 13:40:36 +02:00
2020-10-16 11:11:16 -07:00
2020-12-30 11:53:54 +01:00
2021-06-30 08:47:27 -04:00
2020-08-07 11:33:26 -07:00
2020-12-06 10:19:07 -08:00
2020-06-14 01:57:21 +09:00
2021-07-14 16:56:50 +02:00
2020-10-13 18:38:27 -07:00
2021-05-19 10:13:07 +02:00
2020-12-06 10:19:07 -08:00
2020-08-12 10:57:59 -07:00
2021-03-17 17:06:37 +01:00
2020-10-13 18:38:27 -07:00
2020-04-02 09:35:29 -07:00
2021-07-28 14:35:46 +02:00
2021-07-14 16:56:14 +02:00
2021-09-22 12:27:59 +02:00
2021-07-19 09:44:56 +02:00
2021-07-25 14:36:18 +02:00
2020-11-02 12:14:19 -08:00
2020-10-13 18:38:34 -07:00
2021-03-04 11:38:21 +01:00
2021-06-30 08:47:26 -04:00
2020-10-13 18:38:29 -07:00
2020-09-19 13:13:38 -07:00
2020-08-07 11:33:26 -07:00
2020-12-06 10:19:07 -08:00
2020-06-09 09:39:14 -07:00
2021-03-30 14:32:06 +02:00
2020-09-04 12:46:07 +01:00
2020-08-07 11:33:27 -07:00
2020-06-09 09:39:14 -07:00
2020-10-18 09:27:10 -07:00
2020-10-13 18:38:35 -07:00
2021-09-12 08:58:26 +02:00
2020-10-13 18:38:30 -07:00
2020-04-07 10:43:40 -07:00
2020-06-08 11:05:55 -07:00
2021-03-07 12:34:15 +01:00
2020-10-16 11:11:19 -07:00
2020-10-16 11:11:19 -07:00
2020-10-16 11:11:17 -07:00
2020-10-16 11:11:19 -07:00
2020-06-09 09:39:13 -07:00
2021-06-30 08:47:29 -04:00
2021-01-12 20:18:22 +01:00
2020-06-09 09:39:14 -07:00
2021-04-14 08:42:03 +02:00
2020-08-12 10:57:55 -07:00
2021-04-14 08:42:03 +02:00
2020-08-12 10:57:55 -07:00
2021-04-14 08:42:03 +02:00
2020-08-07 11:33:26 -07:00
2021-06-30 08:47:26 -04:00
2021-01-19 18:27:21 +01:00
2021-04-21 13:00:57 +02:00
2020-10-17 13:49:08 -06:00
2021-06-30 08:47:27 -04:00
2020-08-21 09:52:53 -07:00
2021-07-25 14:36:20 +02:00
2020-10-16 11:11:19 -07:00
2020-08-07 11:33:29 -07:00
2021-06-23 14:42:54 +02:00
2021-05-14 09:50:45 +02:00
2021-07-14 16:56:14 +02:00
2020-08-07 11:33:24 -07:00
2021-10-27 09:56:53 +02:00
2020-08-07 11:33:27 -07:00
2021-05-14 09:50:45 +02:00
2020-06-03 20:09:48 -07:00
2020-10-13 18:38:30 -07:00
2020-10-16 11:11:19 -07:00
2020-10-13 18:38:33 -07:00
2021-06-23 14:42:53 +02:00
2021-06-30 08:47:27 -04:00
2020-08-12 10:57:58 -07:00
2020-08-12 10:57:55 -07:00
2021-10-06 15:56:03 +02:00
2020-06-10 19:14:18 -07:00
2021-01-19 18:27:21 +01:00
2020-04-02 09:35:31 -07:00
2021-09-18 13:40:36 +02:00
2020-10-16 11:11:17 -07:00
2020-10-20 14:39:37 -07:00
2021-07-14 16:56:51 +02:00
2020-10-13 18:38:34 -07:00
2020-08-12 10:57:58 -07:00
2021-03-07 12:34:15 +01:00
2020-04-07 10:43:41 -07:00