SUNRPC: Use per-CPU counters to tally server RPC counts
- Improves counting accuracy - Reduces cross-CPU memory traffic Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -266,10 +266,11 @@ static const struct svc_procedure nfsd_acl_procedures3[3] = {
|
||||
},
|
||||
};
|
||||
|
||||
static unsigned int nfsd_acl_count3[ARRAY_SIZE(nfsd_acl_procedures3)];
|
||||
static DEFINE_PER_CPU_ALIGNED(unsigned long,
|
||||
nfsd_acl_count3[ARRAY_SIZE(nfsd_acl_procedures3)]);
|
||||
const struct svc_version nfsd_acl_version3 = {
|
||||
.vs_vers = 3,
|
||||
.vs_nproc = 3,
|
||||
.vs_nproc = ARRAY_SIZE(nfsd_acl_procedures3),
|
||||
.vs_proc = nfsd_acl_procedures3,
|
||||
.vs_count = nfsd_acl_count3,
|
||||
.vs_dispatch = nfsd_dispatch,
|
||||
|
Reference in New Issue
Block a user