Skip to content

mds/SimpleLock: add has_xlock_by()#60996

Merged
vshankar merged 2 commits intoceph:mainfrom
MaxKellermann:mds_SimpleLock__has_xlock_by
Jan 27, 2025
Merged

mds/SimpleLock: add has_xlock_by()#60996
vshankar merged 2 commits intoceph:mainfrom
MaxKellermann:mds_SimpleLock__has_xlock_by

Conversation

@MaxKellermann
Copy link
Member

This replaces get_xlock_by() in cases where only a not-nullptr check is needed; this eliminates costly implicit reference counter manipulations.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

This replaces get_xlock_by() in cases where only a not-nullptr check
is needed; this eliminates costly implicit reference counter
manipulations.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
@github-actions github-actions bot added the cephfs Ceph File System label Dec 9, 2024
This eliminates more reference counter manipulations.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
@MaxKellermann
Copy link
Member Author

@batrick, it's been nearly a month; who will do QA?

@ceph-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@vshankar
Copy link
Contributor

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

@vshankar
Copy link
Contributor

This is good to merge. Will prepare run wiki and merge...

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar vshankar merged commit 1051088 into ceph:main Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System needs-qa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants