NFSv4.1: Select the "most recent locking state" for read/write/setattr stateids
[linux-2.6-block.git] / fs / nfs / nfs4state.c
index 4e95bd72f48047f63636a44b61c1a6bee1f618db..685b1e953ed8c3178700ee81c544066062676b63 100644 (file)
@@ -1053,6 +1053,8 @@ int nfs4_select_rw_stateid(nfs4_stateid *dst, struct nfs4_state *state,
                goto out;
        ret = nfs4_copy_open_stateid(dst, state);
 out:
+       if (nfs_server_capable(state->inode, NFS_CAP_STATEID_NFSV41))
+               dst->seqid = 0;
        return ret;
 }