]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
squid: 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)
committerLeonid Usov <leonid.usov@ibm.com>
Tue, 28 May 2024 16:03:34 +0000 (19:03 +0300)
commitad9c8b073631eca7b54fae09aeb108fc935f30da
tree1626c50428c3d91772b727c4ef546971fcb27c01
parent70edbb6c95a8919d427ca698a758844ab054bb0f
squid: 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>
(cherry picked from commit 50613b5562469ad24ed0fc547cafcfdeef5be604)
Fixes: https://tracker.ceph.com/issues/65740
src/mds/MDCache.cc