https://github.com/torvalds/linux
Revision 4b8222870032715f9d995f3eb7c7acd8379a275d authored by Jeff Layton on 15 April 2019, 16:00:42 UTC, committed by Ilya Dryomov on 23 April 2019, 19:37:54 UTC
It's possible for us to issue a lookup to revalidate a dentry
concurrently with a rename. If done in the right order, then we could
end up processing dentry info in the reply that no longer reflects the
state of the dentry.

If req->r_dentry->d_name differs from the one in the trace, then just
ignore the trace in the reply. We only need to do this however if the
parent's i_rwsem is not held.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 76a495d
History
Tip revision: 4b8222870032715f9d995f3eb7c7acd8379a275d authored by Jeff Layton on 15 April 2019, 16:00:42 UTC
ceph: handle the case where a dentry has been renamed on outstanding req
Tip revision: 4b82228

back to top