diff options
Diffstat (limited to 'fs/autofs/dev-ioctl.c')
-rw-r--r-- | fs/autofs/dev-ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs/dev-ioctl.c b/fs/autofs/dev-ioctl.c index 752983aafb84..e9fe74d1541b 100644 --- a/fs/autofs/dev-ioctl.c +++ b/fs/autofs/dev-ioctl.c | |||
@@ -350,7 +350,7 @@ static int autofs_dev_ioctl_setpipefd(struct file *fp, | |||
350 | pipefd = param->setpipefd.pipefd; | 350 | pipefd = param->setpipefd.pipefd; |
351 | 351 | ||
352 | mutex_lock(&sbi->wq_mutex); | 352 | mutex_lock(&sbi->wq_mutex); |
353 | if (!sbi->catatonic) { | 353 | if (!(sbi->flags & AUTOFS_SBI_CATATONIC)) { |
354 | mutex_unlock(&sbi->wq_mutex); | 354 | mutex_unlock(&sbi->wq_mutex); |
355 | return -EBUSY; | 355 | return -EBUSY; |
356 | } else { | 356 | } else { |
@@ -377,7 +377,7 @@ static int autofs_dev_ioctl_setpipefd(struct file *fp, | |||
377 | swap(sbi->oz_pgrp, new_pid); | 377 | swap(sbi->oz_pgrp, new_pid); |
378 | sbi->pipefd = pipefd; | 378 | sbi->pipefd = pipefd; |
379 | sbi->pipe = pipe; | 379 | sbi->pipe = pipe; |
380 | sbi->catatonic = 0; | 380 | sbi->flags &= ~AUTOFS_SBI_CATATONIC; |
381 | } | 381 | } |
382 | out: | 382 | out: |
383 | put_pid(new_pid); | 383 | put_pid(new_pid); |