Commit e997763a 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 6c1f87dc
...@@ -1120,6 +1120,9 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf ...@@ -1120,6 +1120,9 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf
stp = stq; stp = stq;
continue; continue;
} }
/* ignore lock owners */
if (stq->st_stateowner->so_is_open_owner == 0)
continue;
if (!test_share(stq,open)) if (!test_share(stq,open))
goto out; goto out;
} }
......
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