Re: [PATCH 1/2] lockref: speculatively spin waiting for the lock to be released
From: Linus Torvalds
Date: Thu Jun 13 2024 - 13:00:52 EST
On Thu, 13 Jun 2024 at 06:46, Christian Brauner <brauner@xxxxxxxxxx> wrote:
>
> I've picked Linus patch and your for testing into the vfs.inode.rcu branch.
Btw, if you added [patch 2/2] too, I think the exact byte counts in
the comments are a bit misleading.
The actual cacheline details will very much depend on 32-bit vs 64-bit
builds, but also on things like the slab allocator debug settings.
I think the important part is to keep the d_lockref - that is often
dirty and exclusive in the cache - away from the mostly RO parts of
the dentry that can be shared across CPU's in the cache.
So rather than talk about exact byte offsets, maybe just state that
overall rule?
Linus