sunrpc: add a debugfs rpc_xprt directory with an info file in it
authorJeff Layton <jlayton@primarydata.com>
Wed, 26 Nov 2014 19:44:44 +0000 (14:44 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Nov 2014 18:14:52 +0000 (13:14 -0500)
commit388f0c776781fe64ce951701bfe712b2182a31f2
tree535e64ee7e52c96a16f80c2d71f2310d6f796b2b
parentb4b9d2ccf0be61c69213f6ae4e33377c05194ef4
sunrpc: add a debugfs rpc_xprt directory with an info file in it

Add a new directory heirarchy under the debugfs sunrpc/ directory:

    sunrpc/
        rpc_xprt/
            <xprt id>/

Within that directory, we can put files that give info about the
xprts. We do have the (minor) problem that there is no succinct,
unique identifier for rpc_xprts. So we generate them synthetically
with a static atomic_t counter.

For now, this directory just holds an "info" file, but we may add
other files to it in the future.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/sunrpc/debug.h
include/linux/sunrpc/xprt.h
net/sunrpc/debugfs.c
net/sunrpc/xprt.c