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.

fs: annotate cdev_lock with __cacheline_aligned_in_smp

No need for the crapper to be susceptible to false-sharing.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20251203095508.291073-1-mjguzik@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Mateusz Guzik and committed by
Christian Brauner
5854fc63 0f5bb0cf

+1 -1
+1 -1
fs/char_dev.c
··· 343 343 kfree(cd); 344 344 } 345 345 346 - static DEFINE_SPINLOCK(cdev_lock); 346 + static __cacheline_aligned_in_smp DEFINE_SPINLOCK(cdev_lock); 347 347 348 348 static struct kobject *cdev_get(struct cdev *p) 349 349 {