Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ns: pad refcount

Note no effort is made to make sure structs embedding the namespace are
themselves aligned, so this is not guaranteed to eliminate cacheline
bouncing due to refcount management.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20251203092851.287617-2-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Mateusz Guzik and committed by
Christian Brauner
c0aac597 887e9774

+3 -1
+3 -1
include/linux/ns/ns_common_types.h
··· 108 108 * @ns_tree: namespace tree nodes and active reference count 109 109 */ 110 110 struct ns_common { 111 + struct { 112 + refcount_t __ns_ref; /* do not use directly */ 113 + } ____cacheline_aligned_in_smp; 111 114 u32 ns_type; 112 115 struct dentry *stashed; 113 116 const struct proc_ns_operations *ops; 114 117 unsigned int inum; 115 - refcount_t __ns_ref; /* do not use directly */ 116 118 union { 117 119 struct ns_tree; 118 120 struct rcu_head ns_rcu;