> On 6 Aug 2022, at 01:07, Vitaliy Makkoveev <[email protected]> wrote:
> 
> I thought you will introduce something like below. This does the
> same but it has no heuristic under the hood.
> 
> int
> sbwait_shared(struct socket *so, struct sockbuf *sb)
> {       
>        int error;
> 
>        if (so->so_proto->pr_unlock != NULL)
>                (*so->so_proto->pr_unlock)(so);
>        error = sbwait(so, sb);
>        if (so->so_proto->pr_lock != NULL)
>                (*so->so_proto->pr_lock)(so);
> 
>        return error;
> }

Sigh. Definitely, I need a break.

Reply via email to