NFS: nfs_rename() handle -ERESTARTSYS dentry left behind
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 1 Feb 2017 05:00:07 +0000 (00:00 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 8 Feb 2017 22:02:44 +0000 (17:02 -0500)
commit920b4530fb80430ff30ef83efe21ba1fa5623731
treee09a3508c339c4f6feeba20f14a7104e77370a03
parent68e33bd6bbb79819e5cb7bce26559191b144c465
NFS: nfs_rename() handle -ERESTARTSYS dentry left behind

An interrupted rename will leave the old dentry behind if the rename
succeeds.  Fix this by moving the final local work of the rename to
rpc_call_done so that the results of the RENAME can always be handled,
even if the original process has already returned with -ERESTARTSYS.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c