diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 3 | ||||
-rw-r--r-- | fs/nfsd/nfs4state.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 4e41f65c7021..5b192a2512b6 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -315,6 +315,9 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
315 | if (open->op_create && open->op_claim_type != NFS4_OPEN_CLAIM_NULL) | 315 | if (open->op_create && open->op_claim_type != NFS4_OPEN_CLAIM_NULL) |
316 | return nfserr_inval; | 316 | return nfserr_inval; |
317 | 317 | ||
318 | /* We don't yet support WANT bits: */ | ||
319 | open->op_share_access &= NFS4_SHARE_ACCESS_MASK; | ||
320 | |||
318 | /* | 321 | /* |
319 | * RFC5661 18.51.3 | 322 | * RFC5661 18.51.3 |
320 | * Before RECLAIM_COMPLETE done, server should deny new lock | 323 | * Before RECLAIM_COMPLETE done, server should deny new lock |
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 5f35f35a2da0..2042805da960 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2345,8 +2345,7 @@ static inline __be32 init_open_stateid(struct nfs4_ol_stateid *stp, struct nfs4_ | |||
2345 | stp->st_file = fp; | 2345 | stp->st_file = fp; |
2346 | stp->st_access_bmap = 0; | 2346 | stp->st_access_bmap = 0; |
2347 | stp->st_deny_bmap = 0; | 2347 | stp->st_deny_bmap = 0; |
2348 | __set_bit(open->op_share_access & ~NFS4_SHARE_WANT_MASK, | 2348 | __set_bit(open->op_share_access, &stp->st_access_bmap); |
2349 | &stp->st_access_bmap); | ||
2350 | __set_bit(open->op_share_deny, &stp->st_deny_bmap); | 2349 | __set_bit(open->op_share_deny, &stp->st_deny_bmap); |
2351 | stp->st_openstp = NULL; | 2350 | stp->st_openstp = NULL; |
2352 | return nfs_ok; | 2351 | return nfs_ok; |
@@ -2690,7 +2689,7 @@ nfsd4_truncate(struct svc_rqst *rqstp, struct svc_fh *fh, | |||
2690 | static __be32 | 2689 | static __be32 |
2691 | nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_ol_stateid *stp, struct nfsd4_open *open) | 2690 | nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp, struct svc_fh *cur_fh, struct nfs4_ol_stateid *stp, struct nfsd4_open *open) |
2692 | { | 2691 | { |
2693 | u32 op_share_access = open->op_share_access & ~NFS4_SHARE_WANT_MASK; | 2692 | u32 op_share_access = open->op_share_access; |
2694 | bool new_access; | 2693 | bool new_access; |
2695 | __be32 status; | 2694 | __be32 status; |
2696 | 2695 | ||