]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pidfs: adapt to rhashtable-based simple_xattrs
authorChristian Brauner <brauner@kernel.org>
Mon, 16 Feb 2026 13:32:01 +0000 (14:32 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 2 Mar 2026 10:06:41 +0000 (11:06 +0100)
commit50704c391fbf11cf52faa27d46c3bb59da33a191
treec9a4fe14deb2901a50a27a5c16dbc8f82103d2d6
parent5bd97f5c5f241a5610c4412d1b93995a26241f81
pidfs: adapt to rhashtable-based simple_xattrs

Adapt pidfs to use the rhashtable-based xattr path by switching from a
dedicated slab cache to simple_xattrs_alloc().

Previously pidfs used a custom kmem_cache (pidfs_xattr_cachep) that
allocated a struct containing an embedded simple_xattrs plus
simple_xattrs_init(). Replace this with simple_xattrs_alloc() which
combines kzalloc + rhashtable_init, and drop the dedicated slab cache
entirely.

Use simple_xattr_free_rcu() for replaced xattr entries to allow
concurrent RCU readers to finish.

Link: https://patch.msgid.link/20260216-work-xattr-socket-v1-5-c2efa4f74cb7@kernel.org
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pidfs.c