[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120221.150538.1746704835094201030.davem@davemloft.net>
Date: Tue, 21 Feb 2012 15:05:38 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: xemul@...allels.com, netdev@...r.kernel.org
Subject: Re: [PATCH 5/6] unix: Support peeking offset for datagram and
seqpacket sockets
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Tue, 21 Feb 2012 18:49:56 +0100
> 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>
Applied.
--
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