summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfsclstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/nfs/nfsclstate.h')
-rw-r--r--sys/fs/nfs/nfsclstate.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfsclstate.h b/sys/fs/nfs/nfsclstate.h
index 006ef3f..868e7cf 100644
--- a/sys/fs/nfs/nfsclstate.h
+++ b/sys/fs/nfs/nfsclstate.h
@@ -34,6 +34,7 @@
*/
LIST_HEAD(nfsclopenhead, nfsclopen);
LIST_HEAD(nfscllockownerhead, nfscllockowner);
+SLIST_HEAD(nfscllockownerfhhead, nfscllockownerfh);
LIST_HEAD(nfscllockhead, nfscllock);
LIST_HEAD(nfsclhead, nfsclclient);
LIST_HEAD(nfsclownerhead, nfsclowner);
@@ -149,8 +150,8 @@ struct nfscllockowner {
struct nfsclopen *nfsl_open;
NFSPROC_T *nfsl_inprog;
nfsv4stateid_t nfsl_stateid;
+ int nfsl_lockflags;
u_int32_t nfsl_seqid;
- u_int32_t nfsl_defunct;
struct nfsv4lock nfsl_rwlock;
u_int8_t nfsl_owner[NFSV4CL_LOCKNAMELEN];
u_int8_t nfsl_openowner[NFSV4CL_LOCKNAMELEN];
@@ -166,6 +167,14 @@ struct nfscllock {
short nfslo_type;
};
+/* This structure is used to collect a list of lockowners to free up. */
+struct nfscllockownerfh {
+ SLIST_ENTRY(nfscllockownerfh) nfslfh_list;
+ struct nfscllockownerhead nfslfh_lock;
+ int nfslfh_len;
+ uint8_t nfslfh_fh[NFSX_V4FHMAX];
+};
+
/*
* Macro for incrementing the seqid#.
*/
OpenPOWER on IntegriCloud