From: Eric Dumazet <redacted>
Date: Tue, 21 Feb 2012 18:49:56 +0100
Le mardi 21 février 2012 à 21:31 +0400, Pavel Emelyanov a écrit :
quoted
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 <redacted>
---
net/unix/af_unix.c | 30 +++++++++++++++++++++++++-----
1 files changed, 25 insertions(+), 5 deletions(-)
Very nice !
Acked-by: Eric Dumazet <redacted>
Applied.