Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nfsd: add session slot count to /proc/fs/nfsd/clients/*/info

Each client now reports the number of slots allocated in each session.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

NeilBrown and committed by
Chuck Lever
601c8cb3 b5fba969

+8
+8
fs/nfsd/nfs4state.c
··· 2643 2643 static int client_info_show(struct seq_file *m, void *v) 2644 2644 { 2645 2645 struct inode *inode = file_inode(m->file); 2646 + struct nfsd4_session *ses; 2646 2647 struct nfs4_client *clp; 2647 2648 u64 clid; 2648 2649 ··· 2680 2679 seq_printf(m, "callback address: \"%pISpc\"\n", &clp->cl_cb_conn.cb_addr); 2681 2680 seq_printf(m, "admin-revoked states: %d\n", 2682 2681 atomic_read(&clp->cl_admin_revoked)); 2682 + spin_lock(&clp->cl_lock); 2683 + seq_printf(m, "session slots:"); 2684 + list_for_each_entry(ses, &clp->cl_sessions, se_perclnt) 2685 + seq_printf(m, " %u", ses->se_fchannel.maxreqs); 2686 + spin_unlock(&clp->cl_lock); 2687 + seq_puts(m, "\n"); 2688 + 2683 2689 drop_client(clp); 2684 2690 2685 2691 return 0;