Re: [PATCH] ksmbd: use clear_and_wake_up_bit() in wake_up_oplock_break()
From: ChenXiaoSong
Date: Wed Sep 30 2026 - 22:51:46 EST
We can remove wake_up_oplock_break() now as well, call clear_and_wake_up_bit() directly.
On 10/1/26 02:37, Daijiamu wrote:
static void wake_up_oplock_break(struct oplock_info *opinfo)
{
- clear_bit_unlock(0, &opinfo->pending_break);
- /* memory barrier is needed for wake_up_bit() */
- smp_mb__after_atomic();
- wake_up_bit(&opinfo->pending_break, 0);
+ clear_and_wake_up_bit(0, &opinfo->pending_break);
}
--
ChenXiaoSong <chenxiaosong@xxxxxxxxxxxxxxxx>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en