On Fri, May 14, 2021 at 10:15 AM Bruce Fields <bfields@xxxxxxxxxxxx> wrote: > > On Fri, May 14, 2021 at 09:30:40AM -0400, Dave Wysochanski wrote: > > For troubleshooting, it is useful to show the callback address and state, > > even though we do have this equivalent info inside Chuck's ftrace patches. > > Good idea. > > > Note there is a show_cb_state() inside fs/nfsd/trace.h and this code > > has a similar function. It may be better to consolidate these two > > if these additions are ok for nfsd client info, but not sure where > > a good header is to place it - do we need a new file, maybe > > fs/nfsd/nfs4callback.h? > > nfs4state.c already includes trace.h, do we need anything more? > Probably not. I am testing a renamed function (I find that "<typename>2str" is more common in the kernel) "cb_state2str" defined in fs/nfsd/trace.c and declaration in fs/nfsd/trace.h If that makes sense I'll send a v2. > I'll admit I've just been adding things wherever seems expedient for a > while, so there may be some more logical way to organize nfsd headers. > > --b. > > > > > Dave Wysochanski (1): > > nfsd4: Expose the callback address and state of each NFS4 client > > > > fs/nfsd/nfs4state.c | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > -- > > 1.8.3.1 >