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)
commit306b13eb3cf9515a8214bbf5d69d811371d05792
tree7a7d7c717c578d54861b6301f3728238974b3933
parent29fda25a2d31098044f8dfa177c4d2834071828e
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