]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1197be1edd15727b221ee269a23647148671d5e4
treedc75f5968429279577af004b809a8e66b8e05f84
parentea2e90f6e03453b69d0687acccacd7c584831fb7
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