]> git.baikalelectronics.ru Git - kernel.git/commit
proto_ops: Add locked held versions of sendmsg and sendpage
authorTom Herbert <tom@quantonium.net>
Fri, 28 Jul 2017 23:22:41 +0000 (16:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 22:26:18 +0000 (15:26 -0700)
commit14f996710113942d0874da06bd5782764a5bddd8
tree7a7d7c717c578d54861b6301f3728238974b3933
parent3b1d32c2724aa5665b09d16d9e9431dc82357157
proto_ops: Add locked held versions of sendmsg and sendpage

Add new proto_ops sendmsg_locked and sendpage_locked that can be
called when the socket lock is already held. Correspondingly, add
kernel_sendmsg_locked and kernel_sendpage_locked as front end
functions.

These functions will be used in zero proxy so that we can take
the socket lock in a ULP sendmsg/sendpage and then directly call the
backend transport proto_ops functions.

Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h
include/net/sock.h
include/net/tcp.h
net/core/sock.c
net/ipv4/af_inet.c
net/ipv4/tcp.c
net/socket.c