summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-03-04 02:35:31 +0100
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-03-04 03:52:30 +0100
commite11259f920d8cb3550e0f311c064bdabe1bc3aaf (patch)
tree2b07c087911fe9c2db2f38943af888c693efe163 /fs/nfs/nfs4session.h
parentNFSv4: Fix a race in NFSv4.1 server trunking discovery (diff)
downloadlinux-e11259f920d8cb3550e0f311c064bdabe1bc3aaf.tar.xz
linux-e11259f920d8cb3550e0f311c064bdabe1bc3aaf.zip
NFSv4.1: Clear the old state by our client id before establishing a new lease
If the call to exchange-id returns with the EXCHGID4_FLAG_CONFIRMED_R flag set, then that means our lease was established by a previous mount instance. Ensure that we detect this situation, and that we clear the state held by that mount. Reported-by: Jorge Mora <Jorge.Mora@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4session.h')
-rw-r--r--fs/nfs/nfs4session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4session.h b/fs/nfs/nfs4session.h
index fc46c7455898..e3ea2c5324d6 100644
--- a/fs/nfs/nfs4session.h
+++ b/fs/nfs/nfs4session.h
@@ -70,6 +70,7 @@ struct nfs4_session {
enum nfs4_session_state {
NFS4_SESSION_INITING,
+ NFS4_SESSION_ESTABLISHED,
};
extern int nfs4_setup_slot_table(struct nfs4_slot_table *tbl,