Skip to content

squid: mds: inode_t flags may not be protected by the policylock during set_vxattr#57176

Merged
batrick merged 6 commits intoceph:squidfrom
batrick:wip-65714-squid
May 22, 2024
Merged

squid: mds: inode_t flags may not be protected by the policylock during set_vxattr#57176
batrick merged 6 commits intoceph:squidfrom
batrick:wip-65714-squid

Conversation

@batrick
Copy link
Member

@batrick batrick commented Apr 30, 2024

backport tracker: https://tracker.ceph.com/issues/65714


backport of #56934
parent tracker: https://tracker.ceph.com/issues/65496

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

batrick added 6 commits April 30, 2024 13:20
or other uses.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 2c2782b)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0c8d601)
So we can have a long-running lock on an inode for certain tests.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 7f1d066)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 8a0eceb)
When the policy xlock cannot be immediately acquired.

Test-case: https://tracker.ceph.com/issues/65496
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 5370ede)
The code logic had a serious defect that it would only execute xlock_policylock
once such that a retry would then proceed to executing the vxattr setting.

Fixes: https://tracker.ceph.com/issues/65496
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 2931860)
@batrick batrick added this to the squid milestone Apr 30, 2024
@batrick batrick added the cephfs Ceph File System label Apr 30, 2024
@github-actions github-actions bot added the tests label Apr 30, 2024
@batrick
Copy link
Member Author

batrick commented May 1, 2024

jenkins test windows

@batrick
Copy link
Member Author

batrick commented May 17, 2024

This PR is under test in https://tracker.ceph.com/issues/66101.

@batrick batrick modified the milestones: v19.1.0, v19.1.1 May 17, 2024
Copy link
Member Author

@batrick batrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@batrick batrick requested a review from leonid-s-usov May 22, 2024 18:02
@batrick batrick merged commit 7f2d512 into ceph:squid May 22, 2024
@batrick batrick deleted the wip-65714-squid branch May 22, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants