linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [REGRESSION 4.6-rc1] NFS mounts (using autofs) failing
       [not found] <56FA62FB.1080506@broadcom.com>
@ 2016-03-29 14:02 ` Al Viro
  2016-03-29 19:17   ` Arend van Spriel
  0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2016-03-29 14:02 UTC (permalink / raw)
  To: Arend Van Spriel
  Cc: Junichi Nomura, linux-kernel@vger.kernel.org,
	Linux NFS Mailing List

On Tue, Mar 29, 2016 at 01:11:55PM +0200, Arend Van Spriel wrote:
> Hi Al,
> 
> Moved to 4.6-rc1 and found NFS mounts were failing moving to the new
> kernel. The NFS mounts are done using autofs. Below is the bisect log
> and attached the kernel .config file. Let me know if you need any other
> information.

AFAICS, it's the same one that got reported yesterday by Junichi Nomura.
Folks, could you check if the delta below fixes it?

diff --git a/fs/namei.c b/fs/namei.c
index 3498d53..0d80c72 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1740,15 +1740,17 @@ static int walk_component(struct nameidata *nd, int flags)
 					  nd->flags);
 		if (IS_ERR(path.dentry))
 			return PTR_ERR(path.dentry);
-		if (unlikely(d_is_negative(path.dentry))) {
-			dput(path.dentry);
-			return -ENOENT;
-		}
+
 		path.mnt = nd->path.mnt;
 		err = follow_managed(&path, nd);
 		if (unlikely(err < 0))
 			return err;
 
+		if (unlikely(d_is_negative(path.dentry))) {
+			path_to_nameidata(&path, nd);
+			return -ENOENT;
+		}
+
 		seq = 0;	/* we are already out of RCU mode */
 		inode = d_backing_inode(path.dentry);
 	}

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [REGRESSION 4.6-rc1] NFS mounts (using autofs) failing
  2016-03-29 14:02 ` [REGRESSION 4.6-rc1] NFS mounts (using autofs) failing Al Viro
@ 2016-03-29 19:17   ` Arend van Spriel
  2016-03-29 22:36     ` Junichi Nomura
  0 siblings, 1 reply; 3+ messages in thread
From: Arend van Spriel @ 2016-03-29 19:17 UTC (permalink / raw)
  To: Al Viro
  Cc: Junichi Nomura, linux-kernel@vger.kernel.org,
	Linux NFS Mailing List



On 29-03-16 16:02, Al Viro wrote:
> On Tue, Mar 29, 2016 at 01:11:55PM +0200, Arend Van Spriel wrote:
>> Hi Al,
>>
>> Moved to 4.6-rc1 and found NFS mounts were failing moving to the new
>> kernel. The NFS mounts are done using autofs. Below is the bisect log
>> and attached the kernel .config file. Let me know if you need any other
>> information.
> 
> AFAICS, it's the same one that got reported yesterday by Junichi Nomura.
> Folks, could you check if the delta below fixes it?

Works for me so you may add

Tested-by: Arend van Spriel <arend@broadcom.com>

Regards,
Arend

> diff --git a/fs/namei.c b/fs/namei.c
> index 3498d53..0d80c72 100644
> --- a/fs/namei.c
> +++ b/fs/namei.c
> @@ -1740,15 +1740,17 @@ static int walk_component(struct nameidata *nd, int flags)
>  					  nd->flags);
>  		if (IS_ERR(path.dentry))
>  			return PTR_ERR(path.dentry);
> -		if (unlikely(d_is_negative(path.dentry))) {
> -			dput(path.dentry);
> -			return -ENOENT;
> -		}
> +
>  		path.mnt = nd->path.mnt;
>  		err = follow_managed(&path, nd);
>  		if (unlikely(err < 0))
>  			return err;
>  
> +		if (unlikely(d_is_negative(path.dentry))) {
> +			path_to_nameidata(&path, nd);
> +			return -ENOENT;
> +		}
> +
>  		seq = 0;	/* we are already out of RCU mode */
>  		inode = d_backing_inode(path.dentry);
>  	}
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [REGRESSION 4.6-rc1] NFS mounts (using autofs) failing
  2016-03-29 19:17   ` Arend van Spriel
@ 2016-03-29 22:36     ` Junichi Nomura
  0 siblings, 0 replies; 3+ messages in thread
From: Junichi Nomura @ 2016-03-29 22:36 UTC (permalink / raw)
  To: Al Viro
  Cc: Arend van Spriel, linux-kernel@vger.kernel.org,
	Linux NFS Mailing List

On 03/30/16 04:17, Arend van Spriel wrote:
> On 29-03-16 16:02, Al Viro wrote:
>> On Tue, Mar 29, 2016 at 01:11:55PM +0200, Arend Van Spriel wrote:
>>> Moved to 4.6-rc1 and found NFS mounts were failing moving to the new
>>> kernel. The NFS mounts are done using autofs. Below is the bisect log
>>> and attached the kernel .config file. Let me know if you need any other
>>> information.
>>
>> AFAICS, it's the same one that got reported yesterday by Junichi Nomura.
>> Folks, could you check if the delta below fixes it?
> 
> Works for me so you may add
> 
> Tested-by: Arend van Spriel <arend@broadcom.com>

Yes, that works for me, too. Thank you.

Tested-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>

-- 
Jun'ichi Nomura, NEC Corporation

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-29 22:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <56FA62FB.1080506@broadcom.com>
2016-03-29 14:02 ` [REGRESSION 4.6-rc1] NFS mounts (using autofs) failing Al Viro
2016-03-29 19:17   ` Arend van Spriel
2016-03-29 22:36     ` Junichi Nomura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).