mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
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>
This commit is contained in:
committed by
Christian Brauner
parent
0f5bb0cfb0
commit
5854fc6391
@@ -343,7 +343,7 @@ void __unregister_chrdev(unsigned int major, unsigned int baseminor,
|
||||
kfree(cd);
|
||||
}
|
||||
|
||||
static DEFINE_SPINLOCK(cdev_lock);
|
||||
static __cacheline_aligned_in_smp DEFINE_SPINLOCK(cdev_lock);
|
||||
|
||||
static struct kobject *cdev_get(struct cdev *p)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user