]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix client race condition validating r_parent before applying state
authorAlex Markuze <amarkuze@redhat.com>
Wed, 30 Jul 2025 15:00:48 +0000 (15:00 +0000)
committerAlex Markuze <amarkuze@redhat.com>
Thu, 31 Jul 2025 11:08:07 +0000 (11:08 +0000)
commit8094a1e2d0cfbf51e233b22f76f8e92492699137
treea96761b44b577d156ec502231bf339fa817bf4f0
parente442fc60cf71f159f1138f01ad70d70305ff05d5
ceph: fix client race condition validating r_parent before applying state

Add validation to ensure the cached parent directory inode matches the
directory info in MDS replies. This prevents client-side race conditions
where concurrent operations (e.g. rename) cause r_parent to become stale
between request initiation and reply processing, which could lead to
applying state changes to incorrect directory inodes.
fs/ceph/mds_client.c