Revert "NFS: nfs_rename() handle -ERESTARTSYS dentry left behind"
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 16 Jun 2017 15:12:59 +0000 (11:12 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 28 Jun 2017 01:58:14 +0000 (21:58 -0400)
commitd9f2950006f110f54444a10442752372ee568289
treec81e3a280f628cb8d4cf648ba34150c04079b2ee
parentbd171930e6a3de4f5cffdafbb944e50093dfb59b
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>
fs/nfs/dir.c