Re: [PATCH v2] ksmbd: use clear_and_wake_up_bit() directly
From: Namjae Jeon
Date: Fri Oct 02 2026 - 09:14:31 EST
On Fri, Oct 2, 2026 at 12:06 AM Daijiamu <3058704216@xxxxxx> wrote:
>
> clear_and_wake_up_bit() was introduced by commit 8236b0ae31c8 ("bdi:
> wake up concurrent wb_shutdown() callers.") to replace the open-coded
> clear_bit_unlock() + smp_mb__after_atomic() + wake_up_bit() sequence.
>
> Replace the sequence and drop the now-trivial wake_up_oplock_break()
> wrapper, calling the helper directly at each call site.
>
> Suggested-by: ChenXiaoSong <chenxiaosong@xxxxxxxxxxxxxxxx>
> Signed-off-by: Daijiamu <3058704216@xxxxxx>
Applied it to #ksmbd-for-next.
Thanks!