Re: 0d3789584915 - main - ctl: use socket buffer mutexes in struct socket directly

From: Gleb Smirnoff <glebius_at_freebsd.org>
Date: Fri, 24 May 2024 15:43:47 UTC
On Thu, May 23, 2024 at 12:21:23PM -0700, Ravi Pokala wrote:
R> Hi Gleb,
R> 
R> Isn't this the exact opposite of the summary? This change *doesn't* use the mutexes directly, it uses the wrappers to *avoid* using the mutexes directly.

SOCKBUF_LOCK(&so->so_rcv) locks via pointer in the buffer to the
socket.

SOCK_RECVBUF_LOCK(so) locks directly in the socket.

-- 
Gleb Smirnoff