aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
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
parent425c1d4e5b6d4bd700eb94ad8318bdb05431fdc7 (diff)
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')
-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 {
422 struct nfs_lowner lock_owner; 422 struct nfs_lowner lock_owner;
423 unsigned char block : 1; 423 unsigned char block : 1;
424 unsigned char reclaim : 1; 424 unsigned char reclaim : 1;
425 unsigned char new_lock : 1;
425 unsigned char new_lock_owner : 1; 426 unsigned char new_lock_owner : 1;
426}; 427};
427 428