All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olga Kornievskaia <olga.kornievskaia@gmail.com>
To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH v2 2/8] SUNRPC display xprt's main value in sysfs's xprt_info
Date: Wed, 23 Jun 2021 23:28:47 -0400	[thread overview]
Message-ID: <20210624032853.4776-3-olga.kornievskaia@gmail.com> (raw)
In-Reply-To: <20210624032853.4776-1-olga.kornievskaia@gmail.com>

From: Olga Kornievskaia <kolga@netapp.com>

Display in sysfs in the information about the xprt if this is a
main transport or not.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
---
 net/sunrpc/sysfs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/sunrpc/sysfs.c b/net/sunrpc/sysfs.c
index 45c0cf18360d..6ef5469fe998 100644
--- a/net/sunrpc/sysfs.c
+++ b/net/sunrpc/sysfs.c
@@ -103,10 +103,10 @@ static ssize_t rpc_sysfs_xprt_info_show(struct kobject *kobj,
 	ret = sprintf(buf, "last_used=%lu\ncur_cong=%lu\ncong_win=%lu\n"
 		       "max_num_slots=%u\nmin_num_slots=%u\nnum_reqs=%u\n"
 		       "binding_q_len=%u\nsending_q_len=%u\npending_q_len=%u\n"
-		       "backlog_q_len=%u\n", xprt->last_used, xprt->cong,
-		       xprt->cwnd, xprt->max_reqs, xprt->min_reqs,
+		       "backlog_q_len=%u\nmain_xprt=%d\n", xprt->last_used,
+		       xprt->cong, xprt->cwnd, xprt->max_reqs, xprt->min_reqs,
 		       xprt->num_reqs, xprt->binding.qlen, xprt->sending.qlen,
-		       xprt->pending.qlen, xprt->backlog.qlen);
+		       xprt->pending.qlen, xprt->backlog.qlen, xprt->main);
 	xprt_put(xprt);
 	return ret + 1;
 }
-- 
2.27.0


  parent reply	other threads:[~2021-06-24  3:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24  3:28 [PATCH v2 0/8] allow for offlining/removing xprt via sysfs Olga Kornievskaia
2021-06-24  3:28 ` [PATCH v2 1/8] SUNRPC mark the first transport Olga Kornievskaia
2021-06-24  3:28 ` Olga Kornievskaia [this message]
2021-06-24  3:28 ` [PATCH v2 3/8] SUNRPC query transport's source port Olga Kornievskaia
2021-06-24  3:28 ` [PATCH v2 4/8] SUNRPC for TCP display xprt's source port in sysfs xprt_info Olga Kornievskaia
2021-06-24  3:28 ` [PATCH v2 5/8] SUNRPC: take a xprt offline using sysfs Olga Kornievskaia
2021-06-24  3:28 ` [PATCH v2 6/8] NFSv4.1 identify and mark RPC tasks that can move between transports Olga Kornievskaia
2021-06-24  3:28 ` [PATCH v2 7/8] sunrpc: display xprt's queuelen of assigned tasks via sysfs Olga Kornievskaia
2021-06-24  3:28 ` [PATCH v2 8/8] sunrpc: remove an offlined xprt using sysfs Olga Kornievskaia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210624032853.4776-3-olga.kornievskaia@gmail.com \
    --to=olga.kornievskaia@gmail.com \
    --cc=anna.schumaker@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.