From: Pavel Emelyanov Date: Tue, 21 Feb 2012 07:32:06 +0000 (+0000) Subject: unix: Support peeking offset for stream sockets X-Git-Tag: v3.4-rc1~177^2~232 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc0d753641f7b919c7273d9bd21ae6ab45e757f3;p=pandora-kernel.git unix: Support peeking offset for stream sockets The same here -- we can protect the sk_peek_off manipulations with the unix_sk->readlock mutex. The peeking of data from a stream socket is done in the datagram style, i.e. even if there's enough room for more data in the user buffer, only the head skb's data is copied in there. This feature is preserved when peeking data from a given offset -- the data is read till the nearest skb's boundary. Signed-off-by: Pavel Emelyanov Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed