Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-28 Thread Ian Kent
On Fri, 2016-09-23 at 20:00 +0800, Ian Kent wrote: > On Fri, 2016-09-23 at 12:26 +0800, Ian Kent wrote: > > On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > On Thu, 2016-09-22 at 10:43 -0500, Eric W. Bied

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-27 Thread Ian Kent
On Tue, 2016-09-27 at 08:14 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > On Mon, 2016-09-26 at 11:05 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > > On Fri, 2016-09-23

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-27 Thread Ian Kent
On Tue, 2016-09-27 at 08:14 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Mon, 2016-09-26 at 11:05 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > On Fri, 2016-09-23 at 14:15 -0500, Eric W. Biederman wrote: > >

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-26 Thread Ian Kent
On Mon, 2016-09-26 at 11:05 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > On Fri, 2016-09-23 at 14:15 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > 2> On Thu, 2016-09-22

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-26 Thread Ian Kent
On Mon, 2016-09-26 at 11:05 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Fri, 2016-09-23 at 14:15 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > 2> On Thu, 2016-09-22 at 20:37 -0500, Eric W. B

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-23 Thread Ian Kent
On Fri, 2016-09-23 at 14:15 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > 2> On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > > On Thu, 2016-09-22

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-23 Thread Ian Kent
On Fri, 2016-09-23 at 14:15 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > 2> On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > On Thu, 2016-09-22 at 10:43 -0500, Eric W. B

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-23 Thread Ian Kent
On Fri, 2016-09-23 at 12:26 +0800, Ian Kent wrote: > On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > > Ian Kent <ra...@themaw.net> writes: > > > > > On Thu, 2016-09-22 at 10:43 -0500, Eric W. Biederman wrote: > > > > Ian Kent <ra..

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-23 Thread Ian Kent
On Fri, 2016-09-23 at 12:26 +0800, Ian Kent wrote: > On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > > Ian Kent writes: > > > > > On Thu, 2016-09-22 at 10:43 -0500, Eric W. Biederman wrote: > > > > Ian Kent writes: > > > > > >

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-22 Thread Ian Kent
On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > On Thu, 2016-09-22 at 10:43 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > > Eric, Mateusz, I

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-22 Thread Ian Kent
On Thu, 2016-09-22 at 20:37 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Thu, 2016-09-22 at 10:43 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > Eric, Mateusz, I appreciate your spending time on this and pa

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-22 Thread Ian Kent
On Thu, 2016-09-22 at 10:43 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > Eric, Mateusz, I appreciate your spending time on this and particularly > > pointing > > out my embarrassingly stupid is_local_mountpoint() usage mistake. >

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-22 Thread Ian Kent
On Thu, 2016-09-22 at 10:43 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > Eric, Mateusz, I appreciate your spending time on this and particularly > > pointing > > out my embarrassingly stupid is_local_mountpoint() usage mistake. > > > > Please acc

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-21 Thread Ian Kent
On Wed, 2016-09-21 at 07:00 +0800, Ian Kent wrote: > On Wed, 2016-09-21 at 06:44 +0800, Ian Kent wrote: > > On Tue, 2016-09-20 at 11:50 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > > On Sat, 2016-09-17 at 22:10

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-21 Thread Ian Kent
On Wed, 2016-09-21 at 07:00 +0800, Ian Kent wrote: > On Wed, 2016-09-21 at 06:44 +0800, Ian Kent wrote: > > On Tue, 2016-09-20 at 11:50 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzi

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-20 Thread Ian Kent
On Wed, 2016-09-21 at 06:44 +0800, Ian Kent wrote: > On Tue, 2016-09-20 at 11:50 -0500, Eric W. Biederman wrote: > > Ian Kent <ra...@themaw.net> writes: > > > > > On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzik wrote: > > > > On Wed, Sep 14

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-20 Thread Ian Kent
On Wed, 2016-09-21 at 06:44 +0800, Ian Kent wrote: > On Tue, 2016-09-20 at 11:50 -0500, Eric W. Biederman wrote: > > Ian Kent writes: > > > > > On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzik wrote: > > > > On Wed, Sep 14, 2016 at 02:14:45PM +0800, Ian K

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-20 Thread Ian Kent
On Tue, 2016-09-20 at 11:50 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzik wrote: > > > On Wed, Sep 14, 2016 at 02:14:45PM +0800, Ian Kent wrote: > > > > If an automount

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-20 Thread Ian Kent
On Tue, 2016-09-20 at 11:50 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzik wrote: > > > On Wed, Sep 14, 2016 at 02:14:45PM +0800, Ian Kent wrote: > > > > If an automount mount is clone(2)ed into a file s

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-18 Thread Ian Kent
On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzik wrote: > On Wed, Sep 14, 2016 at 02:14:45PM +0800, Ian Kent wrote: > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subse

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-18 Thread Ian Kent
On Sat, 2016-09-17 at 22:10 +0200, Mateusz Guzik wrote: > On Wed, Sep 14, 2016 at 02:14:45PM +0800, Ian Kent wrote: > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subse

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-18 Thread Ian Kent
On Fri, 2016-09-16 at 10:58 +0800, Ian Kent wrote: > On Thu, 2016-09-15 at 19:47 -0500, Eric W. Biederman wrote: > > Ian Kent <ra...@themaw.net> writes: > > > > > On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > > > > Ian Kent <ra...@

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-18 Thread Ian Kent
On Fri, 2016-09-16 at 10:58 +0800, Ian Kent wrote: > On Thu, 2016-09-15 at 19:47 -0500, Eric W. Biederman wrote: > > Ian Kent writes: > > > > > On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > > > > Ian Kent writes: > > > > >

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-15 Thread Ian Kent
On Thu, 2016-09-15 at 19:47 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > > On Wed, 2016-09-14

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-15 Thread Ian Kent
On Thu, 2016-09-15 at 19:47 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > On Wed, 2016-09-14 at 12:28 -0500, Eric W. B

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-15 Thread Ian Kent
On Thu, 2016-09-15 at 12:12 +0800, Ian Kent wrote: > On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > > Ian Kent <ra...@themaw.net> writes: > > > > > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > > &g

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-15 Thread Ian Kent
On Thu, 2016-09-15 at 12:12 +0800, Ian Kent wrote: > On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > > Ian Kent writes: > > > > > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > > > > Ian Kent writes: > > > > > >

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > > > Ian Kent <ra...@themaw.net> writes: > > > > > > >

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > If an automount mount is clone(2)ed into a file system that is

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subsequent

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subsequent calls to autofs ->d_auto

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > Ian Kent <ra...@themaw.net> writes: > > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subsequent

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subsequent calls to autofs ->d_auto

[PATCH 4/4] fs - remove unused have_submounts() function

2016-09-14 Thread Ian Kent
Having added the have_local_submounts() function there are no remaining users of have_submounts() so remove it. Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Al Viro <v...@zeniv.linux.org.uk> Cc: Eric W. Biederman <ebied...@xmission.com> Cc: Omar Sandoval <osan...@osandov.

[PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
() can return an incorect result when a mount exists in a namespace other than the one being checked. Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Al Viro <v...@zeniv.linux.org.uk> Cc: Eric W. Biederman <ebied...@xmission.com> Cc: Omar Sandoval <osan...@osandov.com> ---

[PATCH 4/4] fs - remove unused have_submounts() function

2016-09-14 Thread Ian Kent
Having added the have_local_submounts() function there are no remaining users of have_submounts() so remove it. Signed-off-by: Ian Kent Cc: Al Viro Cc: Eric W. Biederman Cc: Omar Sandoval --- fs/dcache.c| 33 - include/linux/dcache.h |1 - 2

[PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
() can return an incorect result when a mount exists in a namespace other than the one being checked. Signed-off-by: Ian Kent Cc: Al Viro Cc: Eric W. Biederman Cc: Omar Sandoval --- fs/autofs4/dev-ioctl.c |2 +- fs/autofs4/expire.c|4 ++-- fs/autofs4/root.c

[PATCH 2/4] fs - add have_local_submounts()

2016-09-14 Thread Ian Kent
The have_submounts() function checks if a dentry is a mountpoint in any namespace but autofs needs to know if the dentry is a mountpoint within the current namespace. Add have_local_submounts() to to do this. Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Al Viro <v...@zeniv.linux.o

[PATCH 1/4] fs - make is_local_mountpoint() usable by others

2016-09-14 Thread Ian Kent
The is_local_mountpoint() function will be needed for autofs to check if a dentry is a mountpoint in the current namespace. Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Al Viro <v...@zeniv.linux.org.uk> Cc: Eric W. Biederman <ebied...@xmission.com> Cc: Omar Sandoval &l

[PATCH 2/4] fs - add have_local_submounts()

2016-09-14 Thread Ian Kent
The have_submounts() function checks if a dentry is a mountpoint in any namespace but autofs needs to know if the dentry is a mountpoint within the current namespace. Add have_local_submounts() to to do this. Signed-off-by: Ian Kent Cc: Al Viro Cc: Eric W. Biederman Cc: Omar Sandoval --- fs

[PATCH 1/4] fs - make is_local_mountpoint() usable by others

2016-09-14 Thread Ian Kent
The is_local_mountpoint() function will be needed for autofs to check if a dentry is a mountpoint in the current namespace. Signed-off-by: Ian Kent Cc: Al Viro Cc: Eric W. Biederman Cc: Omar Sandoval --- fs/mount.h|9 - fs/namespace.c|1 + include/linux

[PATCH] autofs - use dentry flags to block walks during expire

2016-09-11 Thread Ian Kent
and quicker than the indirect mount expire and adding spin lock release and re-aquires would do nothing more than add overhead. Fixes: 47be61845c77 ("fs/dcache.c: avoid soft-lockup in dput()") Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Takashi Iwai <ti...@suse.de> Cc: And

[PATCH] autofs - use dentry flags to block walks during expire

2016-09-11 Thread Ian Kent
and quicker than the indirect mount expire and adding spin lock release and re-aquires would do nothing more than add overhead. Fixes: 47be61845c77 ("fs/dcache.c: avoid soft-lockup in dput()") Signed-off-by: Ian Kent Cc: Takashi Iwai Cc: Andrew Morton Cc: NeilBrown --- fs/autofs4/expir

Re: [PATCH] autofs - use dentry flags to block walks during expire

2016-09-08 Thread Ian Kent
On Fri, 2016-09-09 at 11:39 +1000, NeilBrown wrote: > On Thu, Sep 01 2016, Ian Kent wrote: > > > Somewhere along the way the autofs expire operation has changed to > > hold a spin lock over expired dentry selection. The autofs indirect > > mount expired dentry selection

Re: [PATCH] autofs - use dentry flags to block walks during expire

2016-09-08 Thread Ian Kent
On Fri, 2016-09-09 at 11:39 +1000, NeilBrown wrote: > On Thu, Sep 01 2016, Ian Kent wrote: > > > Somewhere along the way the autofs expire operation has changed to > > hold a spin lock over expired dentry selection. The autofs indirect > > mount expired dentry selection

[PATCH] autofs - use dentry flags to block walks during expire

2016-08-31 Thread Ian Kent
and quicker than the indirect mount expire and adding spin lock release and re-aquires would do nothing more than add overhead. Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/expire.c | 55 +++ 1 file changed, 42 insertions(+), 13 del

[PATCH] autofs - use dentry flags to block walks during expire

2016-08-31 Thread Ian Kent
and quicker than the indirect mount expire and adding spin lock release and re-aquires would do nothing more than add overhead. Signed-off-by: Ian Kent --- fs/autofs4/expire.c | 55 +++ 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/fs

[PATCH 1/3] autofs: remove possibly misleading /* #define DEBUG */

2016-08-30 Thread Ian Kent
tional difference. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/autofs_i.h |2 -- 1 file changed, 2 deletions(-) diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index dd71bd4..4404a22 100644 --- a/fs/autofs

[PATCH 1/3] autofs: remove possibly misleading /* #define DEBUG */

2016-08-30 Thread Ian Kent
-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h |2 -- 1 file changed, 2 deletions(-) diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index dd71bd4..4404a22 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h @@ -34,8 +34,6 @@ #include #include

[PATCH 3/3] autofs: fix "fix dev ioctl number range check"

2016-08-30 Thread Ian Kent
upstream. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/autofs_i.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 4404a22..a1fba42 100644 --- a/

[PATCH 2/3] autofs: refactor ioctl fn vector in iookup_dev_ioctl()

2016-08-30 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> cmd part of this struct is the same as an index of itself within _ioctls[]. In fact this cmd is unused, so we can drop this part. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@them

[PATCH 3/3] autofs: fix "fix dev ioctl number range check"

2016-08-30 Thread Ian Kent
umi Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 4404a22..a1fba42 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h @@ -21,7 +21,7 @@ #def

[PATCH 2/3] autofs: refactor ioctl fn vector in iookup_dev_ioctl()

2016-08-30 Thread Ian Kent
From: Tomohiro Kusumi cmd part of this struct is the same as an index of itself within _ioctls[]. In fact this cmd is unused, so we can drop this part. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c | 49 1

Re: 4.8-rc4 spews "BUG: sleeping function called from invalid context at fs/dcache.c:757"

2016-08-29 Thread Ian Kent
On Tue, 2016-08-30 at 09:37 +0800, Ian Kent wrote: > On Mon, 2016-08-29 at 16:18 +0100, Al Viro wrote: > > On Mon, Aug 29, 2016 at 04:35:46PM +0200, Takashi Iwai wrote: > > > > > [] dput+0x46/0x400 > > ... which should not be called in atomic contexts > &

Re: 4.8-rc4 spews "BUG: sleeping function called from invalid context at fs/dcache.c:757"

2016-08-29 Thread Ian Kent
On Tue, 2016-08-30 at 09:37 +0800, Ian Kent wrote: > On Mon, 2016-08-29 at 16:18 +0100, Al Viro wrote: > > On Mon, Aug 29, 2016 at 04:35:46PM +0200, Takashi Iwai wrote: > > > > > [] dput+0x46/0x400 > > ... which should not be called in atomic contexts > &

Re: 4.8-rc4 spews "BUG: sleeping function called from invalid context at fs/dcache.c:757"

2016-08-29 Thread Ian Kent
On Mon, 2016-08-29 at 16:18 +0100, Al Viro wrote: > On Mon, Aug 29, 2016 at 04:35:46PM +0200, Takashi Iwai wrote: > > > [] dput+0x46/0x400 > ... which should not be called in atomic contexts > > [] follow_down_one+0x27/0x60 > ... and neither should this > > []

Re: 4.8-rc4 spews "BUG: sleeping function called from invalid context at fs/dcache.c:757"

2016-08-29 Thread Ian Kent
On Mon, 2016-08-29 at 16:18 +0100, Al Viro wrote: > On Mon, Aug 29, 2016 at 04:35:46PM +0200, Takashi Iwai wrote: > > > [] dput+0x46/0x400 > ... which should not be called in atomic contexts > > [] follow_down_one+0x27/0x60 > ... and neither should this > > []

Re: [PATCH v05 37/72] include/uapi/linux/auto_fs.h: include linux/limits.h

2016-08-22 Thread Ian Kent
On Mon, 2016-08-22 at 20:32 +0200, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: ‘NAME_MAX’ undeclared here (not in a function) Thanks for your effort but a patch for this, from from Tomohiro Kusumi, is currently included in the mm tree. > > Signed-off-by: Mikko Rapeli

Re: [PATCH v05 37/72] include/uapi/linux/auto_fs.h: include linux/limits.h

2016-08-22 Thread Ian Kent
On Mon, 2016-08-22 at 20:32 +0200, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: ‘NAME_MAX’ undeclared here (not in a function) Thanks for your effort but a patch for this, from from Tomohiro Kusumi, is currently included in the mm tree. > > Signed-off-by: Mikko Rapeli >

[PATCH 02/18] autofs: Drop unnecessary extern in autofs_i.h

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> autofs4_kill_sb() doesn't need to be declared as extern, and no other functions in .h are explicitly declared as extern. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net&g

[PATCH 02/18] autofs: Drop unnecessary extern in autofs_i.h

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi autofs4_kill_sb() doesn't need to be declared as extern, and no other functions in .h are explicitly declared as extern. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 12/18] autofs: Update struct autofs_dev_ioctl in Documentation

2016-08-11 Thread Ian Kent
ed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ik...@redhat.com> --- .../filesystems/autofs4-mount-control.txt | 70 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/Documentation/filesystems/autofs4-mount-control.tx

[PATCH 09/18] autofs: Don't fail to free_dev_ioctl(param)

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Returning -ENOTTY here fails to free dynamically allocated param. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ik...@redhat.com> --- fs/autofs4/dev-ioctl.c |3 ++- 1 file changed,

[PATCH 12/18] autofs: Update struct autofs_dev_ioctl in Documentation

2016-08-11 Thread Ian Kent
-by: Ian Kent --- .../filesystems/autofs4-mount-control.txt | 70 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/Documentation/filesystems/autofs4-mount-control.txt b/Documentation/filesystems/autofs4-mount-control.txt index 540d9a7..50a3e01 100644

[PATCH 09/18] autofs: Don't fail to free_dev_ioctl(param)

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi Returning -ENOTTY here fails to free dynamically allocated param. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c

[PATCH 11/18] autofs: Fix Documentation regarding devid on ioctl

2016-08-11 Thread Ian Kent
m> Signed-off-by: Ian Kent <ik...@redhat.com> --- .../filesystems/autofs4-mount-control.txt |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/filesystems/autofs4-mount-control.txt b/Documentation/filesystems/autofs4-mount-control.txt inde

[PATCH 15/18] autofs: Add autofs_dev_ioctl_version() for AUTOFS_DEV_IOCTL_VERSION_CMD

2016-08-11 Thread Ian Kent
e long run. 3. The existing code is based on the fact that validate_dev_ioctl() sets ioctl version for any command, but AUTOFS_DEV_IOCTL_VERSION_CMD should explicitly set it regardless of the default behavior. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by:

[PATCH 10/18] autofs: Remove AUTOFS_DEVID_LEN

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> This macro was never used by neither kernel nor userspace, and also doesn't represent "devid length" in bytes. (unless it was added to mean something else). Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signe

[PATCH 13/18] autofs: Fix pr_debug() message

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> This isn't a return value, so change the message to indicate the status is the result of may_umount(). (or locate pr_debug() after put_user() with the same message) Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed

[PATCH 18/18] autofs4 - move linux/auto_dev-ioctl.h to uapi/linux

2016-08-11 Thread Ian Kent
Since linux/auto_dev-ioctl.h wasn't included in include/linux/Kbuild it wasn't moved to uapi/linux as part of the uapi series. Signed-off-by: Ian Kent <ra...@themaw.net> --- include/linux/auto_dev-ioctl.h | 209 - include/uapi/linux/auto_dev-ioctl.h

[PATCH 11/18] autofs: Fix Documentation regarding devid on ioctl

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi The explanation on how ioctl handles devid seems incorrect. Userspace who calls this ioctl has no input regarding devid, and ioctl implementation retrieves devid via superblock. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- .../filesystems/autofs4-mount

[PATCH 15/18] autofs: Add autofs_dev_ioctl_version() for AUTOFS_DEV_IOCTL_VERSION_CMD

2016-08-11 Thread Ian Kent
is based on the fact that validate_dev_ioctl() sets ioctl version for any command, but AUTOFS_DEV_IOCTL_VERSION_CMD should explicitly set it regardless of the default behavior. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c | 25

[PATCH 10/18] autofs: Remove AUTOFS_DEVID_LEN

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi This macro was never used by neither kernel nor userspace, and also doesn't represent "devid length" in bytes. (unless it was added to mean something else). Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- include/linux/auto_dev-ioctl.h |2

[PATCH 13/18] autofs: Fix pr_debug() message

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi This isn't a return value, so change the message to indicate the status is the result of may_umount(). (or locate pr_debug() after put_user() with the same message) Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/root.c |2 +- 1 file changed

[PATCH 18/18] autofs4 - move linux/auto_dev-ioctl.h to uapi/linux

2016-08-11 Thread Ian Kent
Since linux/auto_dev-ioctl.h wasn't included in include/linux/Kbuild it wasn't moved to uapi/linux as part of the uapi series. Signed-off-by: Ian Kent --- include/linux/auto_dev-ioctl.h | 209 - include/uapi/linux/auto_dev-ioctl.h | 221

[PATCH 17/18] autofs: Move inclusion of linux/limits.h to uapi

2016-08-11 Thread Ian Kent
gt; EOF # gcc -Wall -g ./test1.c In file included from ./test1.c:2:0: /usr/include/linux/auto_fs.h:54:12: error: 'NAME_MAX' undeclared here (not in a function) char name[NAME_MAX+1]; ^ Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ik..

[PATCH 16/18] autofs: Fix print format for ioctl warning message

2016-08-11 Thread Ian Kent
control interface version mismatch: kernel(1.0), user(0.0), cmd(-1072131215) Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ik...@redhat.com> --- fs/autofs4/dev-ioctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/dev-

[PATCH 14/18] autofs - fix dev ioctl number range check

2016-08-11 Thread Ian Kent
The count of miscellaneous device ioctls in fs/autofs4/autofs_i.h is wrong. The number of ioctls is the difference between AUTOFS_DEV_IOCTL_VERSION_CMD and AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD (14) not the difference between AUTOFS_IOC_COUNT and 11 (21). Signed-off-by: Ian Kent <ra...@themaw.

[PATCH 17/18] autofs: Move inclusion of linux/limits.h to uapi

2016-08-11 Thread Ian Kent
file included from ./test1.c:2:0: /usr/include/linux/auto_fs.h:54:12: error: 'NAME_MAX' undeclared here (not in a function) char name[NAME_MAX+1]; ^ Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- include/linux/auto_fs.h |1 - include/uapi/linux/auto_fs.h |

[PATCH 16/18] autofs: Fix print format for ioctl warning message

2016-08-11 Thread Ian Kent
ernel(1.0), user(0.0), cmd(-1072131215) Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index 7289216..e89d6bb 100644 --- a/fs/autofs4/dev-ioct

[PATCH 14/18] autofs - fix dev ioctl number range check

2016-08-11 Thread Ian Kent
The count of miscellaneous device ioctls in fs/autofs4/autofs_i.h is wrong. The number of ioctls is the difference between AUTOFS_DEV_IOCTL_VERSION_CMD and AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD (14) not the difference between AUTOFS_IOC_COUNT and 11 (21). Signed-off-by: Ian Kent Cc: Tomohiro Kusumi

[PATCH 01/18] autofs: Fix typos in Documentation/filesystems/autofs4.txt

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> plus minor whitespace fixes. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net> --- Documentation/filesystems/autofs4.txt |8 1 file changed, 4 insertions(+), 4

[PATCH 06/18] autofs - remove ino free in autofs4_dir_symlink()

2016-08-11 Thread Ian Kent
The inode allocation failure case in autofs4_dir_symlink() frees the autofs dentry info of the dentry without setting ->d_fsdata to NULL. That could lead to a double free so just get rid of the free and leave it to ->d_release(). Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Tom

[PATCH 04/18] autofs - fix autofs4_fill_super() error exit handling

2016-08-11 Thread Ian Kent
Somewhere along the line the error handling gotos have become incorrect. Signed-off-by: Ian Kent <ra...@themaw.net> Cc: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> --- fs/autofs4/inode.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/autofs4/inode.c

[PATCH 07/18] autofs: Use autofs4_free_ino() to kfree dentry data

2016-08-11 Thread Ian Kent
change in the previous patch. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 0dd4db9..f35ea

[PATCH 03/18] autofs: Test autofs versions first on sb initialization

2016-08-11 Thread Ian Kent
umi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/inode.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 61b2105..8357544 100644 --- a/fs/autofs4/inode.

[PATCH 05/18] autofs: Add WARN_ON(1) for non dir/link inode case

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> It's invalid if the given mode is neither dir nor link, so warn on else case. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/inode.c |3 ++- 1 file cha

[PATCH 08/18] autofs: Remove obsolete sb fields

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> These two were left from aa55ddf3 which removed unused ioctls. Signed-off-by: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Signed-off-by: Ian Kent <ik...@redhat.com> --- fs/autofs4/autofs_i.h |2 -- 1 file changed, 2 deleti

[PATCH 01/18] autofs: Fix typos in Documentation/filesystems/autofs4.txt

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi plus minor whitespace fixes. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- Documentation/filesystems/autofs4.txt |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/filesystems/autofs4.txt b/Documentation

[PATCH 06/18] autofs - remove ino free in autofs4_dir_symlink()

2016-08-11 Thread Ian Kent
The inode allocation failure case in autofs4_dir_symlink() frees the autofs dentry info of the dentry without setting ->d_fsdata to NULL. That could lead to a double free so just get rid of the free and leave it to ->d_release(). Signed-off-by: Ian Kent Cc: Tomohiro Kusumi --- fs/a

[PATCH 04/18] autofs - fix autofs4_fill_super() error exit handling

2016-08-11 Thread Ian Kent
Somewhere along the line the error handling gotos have become incorrect. Signed-off-by: Ian Kent Cc: Tomohiro Kusumi --- fs/autofs4/inode.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 8357544..64d721f 100644

[PATCH 07/18] autofs: Use autofs4_free_ino() to kfree dentry data

2016-08-11 Thread Ian Kent
-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 0dd4db9..f35ead7 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c @@ -340,7 +340,7 @@ fail_dput

[PATCH 03/18] autofs: Test autofs versions first on sb initialization

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi This patch does what the below comment says. It could be and it's considered better to do this first before various functions get called during initialization. /* Couldn't this be tested earlier? */ Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4

[PATCH 05/18] autofs: Add WARN_ON(1) for non dir/link inode case

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi It's invalid if the given mode is neither dir nor link, so warn on else case. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/inode.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c

[PATCH 08/18] autofs: Remove obsolete sb fields

2016-08-11 Thread Ian Kent
From: Tomohiro Kusumi These two were left from aa55ddf3 which removed unused ioctls. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h |2 -- 1 file changed, 2 deletions(-) diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index eb87055..73e3d38

[PATCH] autofs: don't stuck in a loop if vfs_write returns an error

2016-06-16 Thread Ian Kent
From: Andrey Vagin <ava...@openvz.org> __vfs_write() returns a negative value in a error case. Signed-off-by: Andrey Vagin <ava...@openvz.org> Signed-off-by: Ian Kent <ra...@themaw.net> --- fs/autofs4/waitq.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-

[PATCH] autofs: don't stuck in a loop if vfs_write returns an error

2016-06-16 Thread Ian Kent
From: Andrey Vagin __vfs_write() returns a negative value in a error case. Signed-off-by: Andrey Vagin Signed-off-by: Ian Kent --- fs/autofs4/waitq.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c index 0146d91..631f155

Re: [PATCH] autofs: don't stuck in a loop if vfs_write returns an error

2016-06-16 Thread Ian Kent
On Fri, 2016-06-10 at 12:07 -0700, Andrew Morton wrote: > On Thu, 09 Jun 2016 09:23:26 +0800 Ian Kent <ra...@themaw.net> wrote: > > > > I was getting ready to send these over to Andrew and found that opendir(3) > > > is > > > failing on a number of

Re: [PATCH] autofs: don't stuck in a loop if vfs_write returns an error

2016-06-16 Thread Ian Kent
On Fri, 2016-06-10 at 12:07 -0700, Andrew Morton wrote: > On Thu, 09 Jun 2016 09:23:26 +0800 Ian Kent wrote: > > > > I was getting ready to send these over to Andrew and found that opendir(3) > > > is > > > failing on a number of tests (51 of 230,

[ANNOUNCE] autofs 5.1.2 release

2016-06-14 Thread Ian Kent
Hi all, An update is overdue so here it is. It's mostly a bug fix update. autofs == The package can be found at: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5 It is autofs-5.1.2.tar.[gz|xz] No source rpm is there as it can be produced by using: rpmbuild -ts autofs-5.1.2.tar.gz and

<    1   2   3   4   5   6   7   8   9   10   >