OSDN Git Service

SUNRPC: Restructure svc_tcp_recv_record()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 16 Mar 2020 18:53:04 +0000 (14:53 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 18 May 2020 14:21:23 +0000 (10:21 -0400)
commita5cda73e49aaaac58b25750f4b591c0dc9726a44
treedc75f5968429279577af004b809a8e66b8e05f84
parent02648908d19a99532b0839959e38ae53d95d2798
SUNRPC: Restructure svc_tcp_recv_record()

Refactor: svc_recvfrom() is going to be converted to read into
bio_vecs in a moment. Unhook the only other caller,
svc_tcp_recv_record(), which just wants to read the 4-byte stream
record marker into a kvec.

While we're in the area, streamline this helper by straight-lining
the hot path, replace dprintk call sites with tracepoints, and
reduce the number of atomic bit operations in this path.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/trace/events/sunrpc.h
net/sunrpc/svcsock.c