diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-03-17 20:31:15 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-03-25 17:04:11 +0100 |
commit | 3b66486c4c7136f8d4bbe1306d581fadc6bce4c7 (patch) | |
tree | 953049d16122695bab4388ae86394bb2d09bb236 /fs/nfs/nfs4proc.c | |
parent | NFSv4: Prepare for minorversion-specific nfs_server capabilities (diff) | |
download | linux-3b66486c4c7136f8d4bbe1306d581fadc6bce4c7.tar.xz linux-3b66486c4c7136f8d4bbe1306d581fadc6bce4c7.zip |
NFSv4.1: Select the "most recent locking state" for read/write/setattr stateids
Follow the practice described in section 8.2.2 of RFC5661: When sending a
read/write or setattr stateid, set the seqid field to zero in order to
signal that the NFS server should apply the most recent locking state.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to '')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 22c80f9ed824..625a729ebcca 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6841,7 +6841,8 @@ static const struct nfs4_minor_version_ops nfs_v4_1_minor_ops = { .init_caps = NFS_CAP_READDIRPLUS | NFS_CAP_ATOMIC_OPEN | NFS_CAP_CHANGE_ATTR - | NFS_CAP_POSIX_LOCK, + | NFS_CAP_POSIX_LOCK + | NFS_CAP_STATEID_NFSV41, .call_sync = nfs4_call_sync_sequence, .match_stateid = nfs41_match_stateid, .find_root_sec = nfs41_find_root_sec, |