[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1329846596.18384.26.camel@edumazet-laptop>
Date: Tue, 21 Feb 2012 18:49:56 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Pavel Emelyanov <xemul@...allels.com>
Cc: David Miller <davem@...emloft.net>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH 5/6] unix: Support peeking offset for datagram and
seqpacket sockets
Le mardi 21 février 2012 à 21:31 +0400, Pavel Emelyanov a écrit :
> The sk_peek_off manipulations are protected with the unix_sk->readlock mutex.
> This mutex is enough since all we need is to syncronize setting the offset
> vs reading the queue head. The latter is fully covered with the mentioned lock.
>
> The recently added __skb_recv_datagram's offset is used to pick the skb to
> read the data from.
>
> Signed-off-by: Pavel Emelyanov <xemul@...allels.com>
>
> ---
> net/unix/af_unix.c | 30 +++++++++++++++++++++++++-----
> 1 files changed, 25 insertions(+), 5 deletions(-)
Very nice !
Acked-by: Eric Dumazet <eric.dumazet@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists