svcrdma: Convert rdma_stat_recv to a per-CPU counter
authorChuck Lever <chuck.lever@oracle.com>
Tue, 29 Dec 2020 20:47:44 +0000 (15:47 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:28 +0000 (09:36 -0500)
commitdf971cd853c05778ae1175e8aeb80a04bb9d4be5
tree90179b120aa5fcfcfacc44439ffbb0e2a1ae16f2
parent59a00257c66c2d7b3db21245287711ea6c745e7c
svcrdma: Convert rdma_stat_recv to a per-CPU counter

Receives are frequent events. Avoid the overhead of a memory bus
lock cycle for counting a value that is hardly every used.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma.c
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c