]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: add missing policylock to test F_QUIESCE_BLOCK
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 19 Apr 2024 23:29:44 +0000 (19:29 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 19 Apr 2024 23:29:44 +0000 (19:29 -0400)
commit50613b5562469ad24ed0fc547cafcfdeef5be604
tree58d39463a509730ee0e5a23e01e2876b13bd299e
parentd5c8530042f7705c6e8ec83a32e0ea1be9cbad40
mds: add missing policylock to test F_QUIESCE_BLOCK

In order to check an inode's F_QUIESCE_BLOCK, the quiesce_inode op must acquire
the policylock. Furthermore, to ensure the F_QUIESCE_BLOCK is not changed
during quiesce, the lock must be held for the duration of the op's lifetime.

Fixes: https://tracker.ceph.com/issues/65595
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDCache.cc