summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.h
diff options
context:
space:
mode:
authorAnna Schumaker2017-01-11 19:37:06 +0100
committerAnna Schumaker2017-01-30 19:14:50 +0100
commitad05cc0f04341216923895c05e2c364ef34f1bb4 (patch)
tree419aa21a983300f816351318104576bfdd7829cc /fs/nfs/nfs4session.h
parentNFS: Merge the remaining setup_sequence functions (diff)
downloadkernel-qcow2-linux-ad05cc0f04341216923895c05e2c364ef34f1bb4.tar.gz
kernel-qcow2-linux-ad05cc0f04341216923895c05e2c364ef34f1bb4.tar.xz
kernel-qcow2-linux-ad05cc0f04341216923895c05e2c364ef34f1bb4.zip
NFS: Make trace_nfs4_setup_sequence() available to NFS v4.0
This tracepoint displays information about the slot that was chosen for the RPC, in addition to session information. This could be useful information for debugging, and we can set the session id hash to 0 to indicate that there is no session. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4session.h')
-rw-r--r--fs/nfs/nfs4session.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4session.h b/fs/nfs/nfs4session.h
index f6378d95b1b5..dfae4880eacb 100644
--- a/fs/nfs/nfs4session.h
+++ b/fs/nfs/nfs4session.h
@@ -175,6 +175,8 @@ static inline int nfs4_has_persistent_session(const struct nfs_client *clp)
return 0;
}
+#define nfs_session_id_hash(session) (0)
+
#endif /* defined(CONFIG_NFS_V4_1) */
#endif /* IS_ENABLED(CONFIG_NFS_V4) */
#endif /* __LINUX_FS_NFS_NFS4SESSION_H */