summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-02-07 14:41:11 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-02-11 15:33:11 -0500
commitc137afabe330f64eddcd4dd281258807e27fd430 (patch)
tree01731471a78543c769e73e03148ade6b5cb73518 /fs/nfs/nfs4_fs.h
parentc5f5e9c5d2e9178fb0bfe4f44f0afcc8ad6488ef (diff)
downloadlinux-c137afabe330f64eddcd4dd281258807e27fd430.tar.gz
linux-c137afabe330f64eddcd4dd281258807e27fd430.tar.xz
NFSv4: Allow the state manager to mark an open_owner as being recovered
This patch adds a seqcount_t lock for use by the state manager to signal that an open owner has been recovered. This mechanism will be used by the delegation, open and byte range lock code in order to figure out if they need to replay requests due to collisions with lock recovery. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index a3f488b074a2..b12b73472020 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -13,6 +13,8 @@
#define NFS4_MAX_LOOP_ON_RECOVER (10)
+#include <linux/seqlock.h>
+
struct idmap;
enum nfs4_client_state {
@@ -90,6 +92,7 @@ struct nfs4_state_owner {
unsigned long so_flags;
struct list_head so_states;
struct nfs_seqid_counter so_seqid;
+ seqcount_t so_reclaim_seqcount;
};
enum {