diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2026-03-13 12:31:47 -0400 |
|---|---|---|
| committer | Chuck Lever <chuck.lever@oracle.com> | 2026-04-03 09:27:15 -0400 |
| commit | 39bd1bfe92a1a9450e1d6397f845020581090836 (patch) | |
| tree | 59bbce29e8bc1fad65cfd2a0649cb00a794995e3 /include/linux/debugobjects.h | |
| parent | 18755b8c2f241648b951d3772e0742cc59834d5a (diff) | |
NFSD: use per-operation statidx for callback procedures
The callback RPC procedure table uses NFSPROC4_CB_##call for
p_statidx, which maps CB_NULL to index 0 and every
compound-based callback (CB_RECALL, CB_LAYOUT, CB_OFFLOAD,
etc.) to index 1. All compound callback operations therefore
share a single statistics counter, making per-operation
accounting impossible.
Assign p_statidx from the NFSPROC4_CLNT_##proc enum instead,
giving each callback operation its own counter slot. The
counts array is already sized by ARRAY_SIZE(nfs4_cb_procedures),
so no allocation change is needed.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
