mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/mm: use block_lock_speculation() in _mm_write_lock()
I can only guess that using block_speculation() there was a leftover from, earlier on, SPECULATIVE_HARDEN_LOCK depending on SPECULATIVE_HARDEN_BRANCH. Fixes:197ecd838a("locking: attempt to ensure lock wrappers are always inline") Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> master commit:62018f0870master date: 2024-03-18 13:53:37 +0100
This commit is contained in:
1 parent
a01c0b0f96
commit
a153b8b42e
1 file changed
+1
-1
@@ -150,7 +150,7 @@ static always_inline void _mm_write_lock(const struct domain *d, mm_rwlock_t *l,
|
||||
_set_lock_level(_lock_level(d, level));
|
||||
}
|
||||
else
|
||||
block_speculation();
|
||||
block_lock_speculation();
|
||||
l->recurse_count++;
|
||||
}
|
||||
|
||||
|
||||