summaryrefslogtreecommitdiff
path: root/net/sunrpc/debugfs.c
diff options
context:
space:
mode:
authorDai Ngo <dai.ngo@oracle.com>2024-11-19 13:43:23 -0800
committerAnna Schumaker <anna.schumaker@oracle.com>2025-01-13 13:27:25 -0500
commitbb504321b96550f9a351920e169de141a3f4c6a1 (patch)
tree6b54e0e649dc39e74c0d50dc498ca7ec84e3d266 /net/sunrpc/debugfs.c
parente0537c9f828dc9500e5ffc9211099c495b72f402 (diff)
SUNRPC: display total RPC tasks for RPC client
Display the total number of RPC tasks, including tasks waiting on workqueue and wait queues, for rpc_clnt. Signed-off-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'net/sunrpc/debugfs.c')
-rw-r--r--net/sunrpc/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sunrpc/debugfs.c b/net/sunrpc/debugfs.c
index a176d5a0b0ee..e4a4c547c70c 100644
--- a/net/sunrpc/debugfs.c
+++ b/net/sunrpc/debugfs.c
@@ -74,6 +74,9 @@ tasks_stop(struct seq_file *f, void *v)
{
struct rpc_clnt *clnt = f->private;
spin_unlock(&clnt->cl_lock);
+ seq_printf(f, "clnt[%pISpc] RPC tasks[%d]\n",
+ (struct sockaddr *)&clnt->cl_xprt->addr,
+ atomic_read(&clnt->cl_task_count));
}
static const struct seq_operations tasks_seq_operations = {