]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: fix nfs_path in case of a rename retry
authorAshish Sangwan <ashishsangwan2@gmail.com>
Mon, 5 Oct 2020 09:22:43 +0000 (02:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:46 +0000 (11:08 +0100)
commitdd7992a5f7448ba33892151784c26b93fe005cfe
tree40fcc9c59b13f314c74ba8fbeeb161471300ad19
parent7ce2b16bad2cbfa3fa7bbc42c4448914f639ca47
NFS: fix nfs_path in case of a rename retry

commit 247db73560bc3e5aef6db50c443c3c0db115bc93 upstream.

We are generating incorrect path in case of rename retry because
we are restarting from wrong dentry. We should restart from the
dentry which was received in the call to nfs_path.

CC: stable@vger.kernel.org
Signed-off-by: Ashish Sangwan <ashishsangwan2@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/namespace.c