Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283221
b: refs/heads/master
c: 4041bcd
h: refs/heads/master
i:
  283219: 3976546
v: v3
  • Loading branch information
Al Viro committed Jan 11, 2012
1 parent 91a5a12 commit 68b3392
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: b3f2a92447b8443360ac117a3d7c06689562a70c
refs/heads/master: 4041bcdc7bef06a2fb29c57394c713a74bd13b08
8 changes: 7 additions & 1 deletion trunk/fs/autofs4/waitq.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ static int validate_request(struct autofs_wait_queue **wait,
struct autofs_wait_queue *wq;
struct autofs_info *ino;

if (sbi->catatonic)
return -ENOENT;

/* Wait in progress, continue; */
wq = autofs4_find_wait(sbi, qstr);
if (wq) {
Expand Down Expand Up @@ -289,6 +292,9 @@ static int validate_request(struct autofs_wait_queue **wait,
if (mutex_lock_interruptible(&sbi->wq_mutex))
return -EINTR;

if (sbi->catatonic)
return -ENOENT;

wq = autofs4_find_wait(sbi, qstr);
if (wq) {
*wait = wq;
Expand Down Expand Up @@ -389,7 +395,7 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,

ret = validate_request(&wq, sbi, &qstr, dentry, notify);
if (ret <= 0) {
if (ret == 0)
if (ret != -EINTR)
mutex_unlock(&sbi->wq_mutex);
kfree(qstr.name);
return ret;
Expand Down

0 comments on commit 68b3392

Please sign in to comment.