]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Move call to rpc_count_iostats before rpc_call_done
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 23 May 2019 20:13:48 +0000 (16:13 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Jul 2019 18:54:51 +0000 (14:54 -0400)
commitc921fabb54a91ef2a3d25b1ba1f6bc10e1027756
treed334968701acb6f7d0443b075e1c09ad82e5dc99
parent67b0be40acc0271acadb79e710a0b47c042c54c8
SUNRPC: Move call to rpc_count_iostats before rpc_call_done

For diagnostic purposes, it would be useful to have an rpc_iostats
metric of RPCs completing with tk_status < 0.  Unfortunately,
tk_status is reset inside the rpc_call_done functions for each
operation, and the call to tally the per-op metrics comes after
rpc_call_done.  Refactor the call to rpc_count_iostat earlier in
rpc_exit_task so we can count these RPCs completing in error.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/sched.c
net/sunrpc/xprt.c