]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd295d44171b8aba55392edf12d1694a62c428e5
treee09a3508c339c4f6feeba20f14a7104e77370a03
parentfde64bae650cad5b92b81089e36669b3bf25c50e
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