]> git.baikalelectronics.ru Git - kernel.git/commit
net: af_unix: implement stream sendpage support
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Thu, 21 May 2015 14:59:59 +0000 (16:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 04:06:58 +0000 (00:06 -0400)
commita32cdd043ebf9ca0e8a534252150bfe264d755bb
treec9086093021e0d0e1d7573f437cb2f7ffdf36273
parent63411c68cb9de43785c386662b7f16584426dfe4
net: af_unix: implement stream sendpage support

This patch implements sendpage support for AF_UNIX SOCK_STREAM
sockets. This is also required for a complete splice implementation.

The implementation is a bit tricky because we append to already existing
skbs and so have to hold unix_sk->readlock to protect the reading side
from either advancing UNIXCB.consumed or freeing the skb at the socket
receive tail.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c