Skip to content

Commit

Permalink
SUNRPC display xprt's main value in sysfs's xprt_info
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
  • Loading branch information
Olga Kornievskaia authored and Trond Myklebust committed Jul 8, 2021
1 parent e091853 commit 0e65ea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/sunrpc/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0e65ea4

Please sign in to comment.