Commit bd290dbf authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kNFSd: When looking for a shareowner in the nfsd open, make sure we...

[PATCH] kNFSd: When looking for a shareowner in the nfsd open, make sure we don't get a lockowner instead.

From: NeilBrown <neilb@cse.unsw.edu.au>

When looking for a shareowner in the nfsd open, make sure we don't get a
lockowner instead.
parent 504386d0
...@@ -1140,7 +1140,7 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf ...@@ -1140,7 +1140,7 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf
GFP_KERNEL)) == NULL) GFP_KERNEL)) == NULL)
goto out; goto out;
if (open->op_share_access && NFS4_SHARE_ACCESS_WRITE) if (open->op_share_access & NFS4_SHARE_ACCESS_WRITE)
flags = MAY_WRITE; flags = MAY_WRITE;
else else
flags = MAY_READ; flags = MAY_READ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment