]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix client race condition where r_parent becomes stale before sending message wip-tls-tracing-parent-fix
authorAlex Markuze <amarkuze@redhat.com>
Wed, 30 Jul 2025 15:03:26 +0000 (15:03 +0000)
committerAlex Markuze <amarkuze@redhat.com>
Thu, 31 Jul 2025 11:08:07 +0000 (11:08 +0000)
commite9538aee9a1876fc317762d0ace8078e96c897af
tree233e2f0aa3eab65246353dafe166e345f76f7bf6
parent8094a1e2d0cfbf51e233b22f76f8e92492699137
ceph: fix client race condition where r_parent becomes stale before sending message

When the parent directory's i_rwsem is not locked, req->r_parent may become
stale due to concurrent operations (e.g. rename) between dentry lookup and
message creation. Validate that r_parent matches the encoded parent inode
and update to the correct inode if a mismatch is detected.
fs/ceph/inode.c