summaryrefslogtreecommitdiff
path: root/ipc/msgutil.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-23 09:51:16 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-23 09:51:16 -1000
commit7a78f7ba9f24962c8033e0152bf34a7903ff61ba (patch)
tree6d3947b6c0faab0ff4390ff85db425812a6da557 /ipc/msgutil.c
parent5b212610d0b8f474f1eef70b9a5aa4b2ecfff788 (diff)
parentd15d7703166daf7bd62c844a3cb1b3a6279adb4c (diff)
Merge tag 'slab-for-7.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab
Pull slab updates from Harry Yoo: - Performance improvement of the sheaf prefill API, by allowing the barn to hold a partial sheaf and refilling sheaves from the barn. This improves will-it-scale mmap1 throughput by 24% on the maple_node cache (Hao Li) - Restore memcg accounting of ipc msg_msg allocations, lost with e.g. CONFIG_SLAB_BUCKETS=n where the allocations fall back to the general kmalloc caches (Kees Cook) - Fix an old race between kmem_cache_destroy() and slab_late_init(), where a cache destroyed late in the boot process tries to release a kobject that was never initialized (Imre Kaloz) - Remove slab_folio(), the last use of struct folio in slab code (Matthew Wilcox) - Reject kmalloc() requests above KMALLOC_MAX_SIZE explicitly with a warning and NULL return instead of relying on the page allocator's order check (Zi Yan) - Various minor fixes and cleanups (Hao Li, Karl Mehltretter, Kees Cook, Longlong Xia) * tag 'slab-for-7.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/slab: mm/slub: initialize the free pointer of the bootstrap kmem_cache_node mm/slab: sample slab_state once in kmem_cache_destroy() ipc, msg: Account msg_msg allocations with GFP_KERNEL_ACCOUNT again mm/slab: Mark the kmem_buckets_create() context as a Context: section slab: Remove slab_folio() mm/slub: refill prefilled sheaves from the barn mm/slub: make the case handling in __slab_free() easier to follow mm/slub: unify slub stat definitions to simplify metric additions mm/slab_common: reject zero object_size before calculate_alignment mm/slab: reject unsupported kmalloc() sizes
Diffstat (limited to 'ipc/msgutil.c')
-rw-r--r--ipc/msgutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc/msgutil.c b/ipc/msgutil.c
index e28f0cecb2ec..12663a40e9ae 100644
--- a/ipc/msgutil.c
+++ b/ipc/msgutil.c
@@ -58,7 +58,8 @@ static struct msg_msg *alloc_msg(size_t len)
size_t alen;
alen = min(len, DATALEN_MSG);
- msg = kmem_buckets_alloc(msg_buckets, sizeof(*msg) + alen, GFP_KERNEL);
+ msg = kmem_buckets_alloc(msg_buckets, sizeof(*msg) + alen,
+ GFP_KERNEL_ACCOUNT);
if (msg == NULL)
return NULL;