summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-01-24 16:03:52 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-01-24 18:46:47 -0500
commitc69899a17ca4836230720e65493942d9582a0424 (patch)
tree71d512aef12f51603adce636bfe0412ceda450e9 /include/linux/nfs_xdr.h
parent425c1d4e5b6d4bd700eb94ad8318bdb05431fdc7 (diff)
downloadlinux-stable-c69899a17ca4836230720e65493942d9582a0424.tar.gz
linux-stable-c69899a17ca4836230720e65493942d9582a0424.tar.bz2
linux-stable-c69899a17ca4836230720e65493942d9582a0424.zip
NFSv4: Update of VFS byte range lock must be atomic with the stateid update
Ensure that we test the lock stateid remained unchanged while we were updating the VFS tracking of the byte range lock. Have the process replay the lock to the server if we detect that was not the case. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index b6a6953c0f09..e5c3b620a609 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -422,6 +422,7 @@ struct nfs_lock_args {
struct nfs_lowner lock_owner;
unsigned char block : 1;
unsigned char reclaim : 1;
+ unsigned char new_lock : 1;
unsigned char new_lock_owner : 1;
};