nfsd4: more robust ignoring of WANT bits in OPEN
[pandora-kernel.git] / fs / nfsd / nfs4proc.c
index 4e41f65..5b192a2 100644 (file)
@@ -315,6 +315,9 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
        if (open->op_create && open->op_claim_type != NFS4_OPEN_CLAIM_NULL)
                return nfserr_inval;
 
+       /* We don't yet support WANT bits: */
+       open->op_share_access &= NFS4_SHARE_ACCESS_MASK;
+
        /*
         * RFC5661 18.51.3
         * Before RECLAIM_COMPLETE done, server should deny new lock