ceph_wait_on_conflict_unlink(): grab reference before dropping ->d_lock
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 15 Sep 2023 01:55:29 +0000 (21:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 Oct 2023 00:14:38 +0000 (20:14 -0400)
commitdc32464a5fe4946fe1a4d8f8e29961dc411933c5
tree987f42313d23e5a39c4b60ed5d7a31537e901bc0
parent1939316bf988f3e49a07d9c4dd6f660bf4daa53d
ceph_wait_on_conflict_unlink(): grab reference before dropping ->d_lock

Use of dget() after we'd dropped ->d_lock is too late - dentry might
be gone by that point.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/mds_client.c