xprtrdma: Re-arrange struct rx_stats

To reduce false cacheline sharing, separate counters that are likely
to be accessed in the Call path from those accessed in the Reply
path.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Chuck Lever and committed by
Anna Schumaker
67af6f65 6748b0ca

+8 -5
+8 -5
net/sunrpc/xprtrdma/xprt_rdma.h
··· 441 441 * Statistics for RPCRDMA 442 442 */ 443 443 struct rpcrdma_stats { 444 + /* accessed when sending a call */ 444 445 unsigned long read_chunk_count; 445 446 unsigned long write_chunk_count; 446 447 unsigned long reply_chunk_count; 447 - 448 448 unsigned long long total_rdma_request; 449 - unsigned long long total_rdma_reply; 450 449 450 + /* rarely accessed error counters */ 451 451 unsigned long long pullup_copy_count; 452 - unsigned long long fixup_copy_count; 453 452 unsigned long hardway_register_count; 454 453 unsigned long failed_marshal_count; 455 454 unsigned long bad_reply_count; 456 - unsigned long nomsg_call_count; 457 - unsigned long bcall_count; 458 455 unsigned long mrs_recovered; 459 456 unsigned long mrs_orphaned; 460 457 unsigned long mrs_allocated; 458 + 459 + /* accessed when receiving a reply */ 460 + unsigned long long total_rdma_reply; 461 + unsigned long long fixup_copy_count; 461 462 unsigned long local_inv_needed; 463 + unsigned long nomsg_call_count; 464 + unsigned long bcall_count; 462 465 }; 463 466 464 467 /*