Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145566
b: refs/heads/master
c: 463aea1
h: refs/heads/master
v: v3
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Jun 9, 2009
1 parent 3a6a15c commit 5af86ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 586c7e6a280580fd94b662bf486f9bb31098d14b
refs/heads/master: 463aea1a1c49f1a7d4b50656dfd6c8bb33358b1b
22 changes: 8 additions & 14 deletions trunk/fs/autofs4/waitq.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,20 +297,14 @@ static int validate_request(struct autofs_wait_queue **wait,
*/
if (notify == NFY_MOUNT) {
/*
* If the dentry isn't hashed just go ahead and try the
* mount again with a new wait (not much else we can do).
*/
if (!d_unhashed(dentry)) {
/*
* But if the dentry is hashed, that means that we
* got here through the revalidate path. Thus, we
* need to check if the dentry has been mounted
* while we waited on the wq_mutex. If it has,
* simply return success.
*/
if (d_mountpoint(dentry))
return 0;
}
* If the dentry was successfully mounted while we slept
* on the wait queue mutex we can return success. If it
* isn't mounted (doesn't have submounts for the case of
* a multi-mount with no mount at it's base) we can
* continue on and create a new request.
*/
if (have_submounts(dentry))
return 0;
}

return 1;
Expand Down

0 comments on commit 5af86ae

Please sign in to comment.