[PATCH v2 0/3] NFS: Fix output of mountstats for NFSv4 state opcodes such as SEQUENCE and RENEW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series fixes the counts for NFSv4 lease and session related opcodes such as SEQUENCE
and RENEW.  Before this patch series, all of the iostats counts shown in /proc/self/mountstats
were always 0.  This complicates troubleshooting so I am proposing a small change to the sunrpc
interface to print these stats.

The series renames an exported symbol in sunrpc, rpc_print_iostats, to rpc_clnt_show_stats,
as described in the header.

As pointed out by Chuck Lever in the RFC patch, the output format remains the same so
this series does not change RPC_IOSTATS_VERS.  Along with this small change, the patch header
in the third patch is slightly changed to better explain the types of opcodes that are now properly
counted.

Dave Wysochanski (3):
  sunrpc: add _print_rpc_iostats() to output metrics for one RPC op
  sunrpc: Add _add_rpc_iostats() to add rpc_iostats metrics
  sunrpc: Change rpc_print_iostats to rpc_clnt_show_stats and handle
    rpc_clnt clones

 fs/nfs/super.c                 |  2 +-
 include/linux/sunrpc/metrics.h |  4 ++--
 net/sunrpc/stats.c             | 54 ++++++++++++++++++++++++++++++------------
 3 files changed, 42 insertions(+), 18 deletions(-)

-- 
2.14.3

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux