Re: [PATCH 2/3] wait: Return number of exclusive waiters awaken

From: Peter Zijlstra
Date: Wed Nov 16 2022 - 15:22:37 EST


On Tue, Nov 15, 2022 at 05:45:52PM -0500, Gabriel Krisman Bertazi wrote:
> Sbitmap code will need to know how many waiters were actually woken for
> its batched wakeups implementation. Return the number of woken
> exclusive waiters from __wake_up() to facilitate that.
>
> Suggested-by: Jan Kara <jack@xxxxxxx>
> Signed-off-by: Gabriel Krisman Bertazi <krisman@xxxxxxx>

Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

> ---
> include/linux/wait.h | 2 +-
> kernel/sched/wait.c | 18 +++++++++++-------
> 2 files changed, 12 insertions(+), 8 deletions(-)