Re: [PATCH v7 03/10] x86/bhi: Rename clear_bhb_loop() to clear_bhb_loop_nofence()
From: Nikolay Borisov
Date: Mon Mar 23 2026 - 11:05:39 EST
On 19.03.26 г. 17:40 ч., Pawan Gupta wrote:
To reflect the recent change that moved LFENCE to the caller side.
Suggested-by: Borislav Petkov <bp@xxxxxxxxx>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@xxxxxxxxxxxxxxx>
Nit: I think having the _nofence in the function name is leaking an implementation detail into the name/interface. I.e things change and we decide that the implementation of a particular function must change so we just do the change and substantiate it in the commit message or in a comment. Especially that we don't have a "with an lfence" version.
What's more I'd consider this a "private" function, that's called via the CLEAR_BRANCH_HISTORY macros, the only place it's called directly is in the bpf jit code, but that's more of an exception.
Still,
Reviewed-by: Nikolay Borisov <nik.borisov@xxxxxxxx>
<snip>