Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222975
b: refs/heads/master
c: de47de7
h: refs/heads/master
i:
  222973: c193175
  222971: 04f777d
  222967: 6e7c624
  222959: f63f619
  222943: 78de54d
  222911: 57de753
  222847: 61c88f6
  222719: f858628
v: v3
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Dec 7, 2010
1 parent 9c49a6d commit 0f17f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: cf7d7e5a1980d1116ee152d25dac382b112b9c17
refs/heads/master: de47de7404e29df8de82f5822b4fde1a6ed97b54
12 changes: 1 addition & 11 deletions trunk/fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,19 +980,11 @@ static int autofs4_root_ioctl_unlocked(struct inode *inode, struct file *filp,
}
}

static DEFINE_MUTEX(autofs4_ioctl_mutex);

static long autofs4_root_ioctl(struct file *filp,
unsigned int cmd, unsigned long arg)
{
long ret;
struct inode *inode = filp->f_dentry->d_inode;

mutex_lock(&autofs4_ioctl_mutex);
ret = autofs4_root_ioctl_unlocked(inode, filp, cmd, arg);
mutex_unlock(&autofs4_ioctl_mutex);

return ret;
return autofs4_root_ioctl_unlocked(inode, filp, cmd, arg);
}

#ifdef CONFIG_COMPAT
Expand All @@ -1002,13 +994,11 @@ static long autofs4_root_compat_ioctl(struct file *filp,
struct inode *inode = filp->f_path.dentry->d_inode;
int ret;

mutex_lock(&autofs4_ioctl_mutex);
if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL)
ret = autofs4_root_ioctl_unlocked(inode, filp, cmd, arg);
else
ret = autofs4_root_ioctl_unlocked(inode, filp, cmd,
(unsigned long)compat_ptr(arg));
mutex_unlock(&autofs4_ioctl_mutex);

return ret;
}
Expand Down

0 comments on commit 0f17f93

Please sign in to comment.