Re: [PATCH 1/2] net/socket: Record preference for synchronous wakeups

From: Willem de Bruijn

Date: Tue Jul 21 2026 - 04:01:25 EST


Srikar Dronamraju wrote:
> Scheduler differentiates between affine and non-affine wakeups by the
> way of sync flags. Scheduler prefers to pull the tasks towards the waker
> if the sync flag is set.
>
> In some cases, socket APIs are blindly requesting sync wakeups. This may
> cause load-balance issues and non-optimal performance.
>
> Record whether the most recent blocking socket operation could benefit

What is the heuristic that determines this?

If respinning, please state that explicitly in the commit message.


> from synchronous wakeups. Subsequent readiness notifications use this
> hint to determine whether WF_SYNC should be propagated.
>
> The flag is advisory and affects only wakeup placement decisions.
>
> Signed-off-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxx>