]> 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)
commit6c0bc35093beaa2d77fedbe13320afce2d665ff9
treee09a3508c339c4f6feeba20f14a7104e77370a03
parent12868ad4eaa36586d9fee6cd2c0b287a386a937b
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