SUNRPC: Count ops completing with tk_status < 0
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 23 May 2019 20:13:50 +0000 (16:13 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:51 +0000 (14:54 -0400)
commita332518fda4731c07394164b3edcbb6efaf4c4d7
treeddb6ffaee7a3327fe10402914093ae8bdd1ca031
parent93ba048e1b9f95ac7e1584fa33ed4d985bf1133d
SUNRPC: Count ops completing with tk_status < 0

We often see various error conditions with NFS4.x that show up with
a very high operation count all completing with tk_status < 0 in a
short period of time.  Add a count to rpc_iostats to record on a
per-op basis the ops that complete in this manner, which will
enable lower overhead diagnostics.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/metrics.h
net/sunrpc/stats.c