Home
last modified time | relevance | path

Searched hist:"920 b4530fb80430ff30ef83efe21ba1fa5623731" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/nfs/
H A Ddir.cdiff d9f2950006f110f54444a10442752372ee568289 Fri Jun 16 10:12:59 CDT 2017 Benjamin Coddington <bcodding@redhat.com> Revert "NFS: nfs_rename() handle -ERESTARTSYS dentry left behind"

This reverts commit 920b4530fb80430ff30ef83efe21ba1fa5623731 which could
call d_move() without holding the directory's i_mutex, and reverts commit
d4ea7e3c5c0e341c15b073016dbf3ab6c65f12f3 "NFS: Fix old dentry rehash after
move", which was a follow-up fix.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Fixes: 920b4530fb80 ("NFS: nfs_rename() handle -ERESTARTSYS dentry left behind")
Cc: stable@vger.kernel.org # v4.10+
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
diff 920b4530fb80430ff30ef83efe21ba1fa5623731 Tue Jan 31 23:00:07 CST 2017 Benjamin Coddington <bcodding@redhat.com> 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>