Skip to content

mds: rework FSMap to avoid shared_ptrs - #52409

Merged
vshankar merged 1 commit into
ceph:mainfrom
batrick:fsmap-no-sharedptr
Aug 31, 2023
Merged

vshankar merged 1 commit into
ceph:mainfrom
batrick:fsmap-no-sharedptr

Conversation

@batrick

@batrick batrick commented Jul 12, 2023 •

Copy link
Copy Markdown
Member

There's zero reason to complicate the interface with shared_ptr when a Filesystem's lifetime is tied to the FSMap.

Contribution Guidelines

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)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

There's zero reason to complicate the interface with
shared_ptr<Filesystem> when a Filesystem's lifetime is tied to the
FSMap.

Signed-off-by: Patrick Donnelly <[email protected]>
@batrick
batrick force-pushed the fsmap-no-sharedptr branch from 9b40f3c to 728cdc3 Compare July 12, 2023 14:56
@batrick
batrick requested a review from a team July 18, 2023 15:42
@batrick

batrick commented Jul 18, 2023

Copy link
Copy Markdown
Member Author

Blocking #51993

@vshankar

vshankar commented Aug 1, 2023

Copy link
Copy Markdown
Contributor

@mchangir I assigned this to you for review and tests. PTAL.

@batrick

batrick commented Aug 1, 2023

Copy link
Copy Markdown
Member Author

jenkins test windows

@batrick

batrick commented Aug 3, 2023

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

Comment thread src/mds/FSMap.h
FSMap &operator=(const FSMap &rhs);

const CompatSet &get_default_compat() const {return default_compat;}
const_iterator begin() const {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Liked this -- super handy for iterating filesystems 👍

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vshankar
vshankar merged commit 4e021a0 into ceph:main Aug 31, 2023
@batrick
batrick deleted the fsmap-no-sharedptr branch August 31, 2023 12:47
rishabh-d-dave added a commit to rishabh-d-dave/ceph that referenced this pull request Sep 6, 2023
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <[email protected]>
rishabh-d-dave added a commit to rishabh-d-dave/ceph that referenced this pull request Sep 7, 2023
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <[email protected]>
ronen-fr pushed a commit to ronen-fr/ceph that referenced this pull request Sep 7, 2023
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <[email protected]>
@rishabh-d-dave

rishabh-d-dave commented Sep 7, 2023 •

Copy link
Copy Markdown
Contributor

PR #51942 will be backported. And the combination of this PR with PR #51942 will break the branch. Therefore, if this PR is backported, commit 8e39a00 needs to be backported along so that the build for the branch for which backport is being done doesn't break.

@batrick

batrick commented Sep 7, 2023

Copy link
Copy Markdown
Member Author

PR #51942 will be backported. And the combination of this PR with PR #51942 will break the branch. Therefore, if this PR is backported, commit 8e39a00 needs to be backported along so that the build for the branch for which backport is being done doesn't break.

I have no plans to backport this cleanup.

benhanokh pushed a commit to benhanokh/ceph that referenced this pull request Sep 10, 2023
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <[email protected]>
aaSharma14 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Dec 6, 2023
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <[email protected]>
aaSharma14 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Dec 26, 2023
PR ceph#51942 today and PR ceph#52409 was merged last week. Latter PR changed
"fs" to "fsp" and made mds_map and fscid private and introduced
get_mds_map() and get_fsicd() methods instead.

Combination of former and latter PR introduced compilation errors & made
it impossible to build the binaries on the latest main branch. This
commit attemps to fix this issue.

Fixes: https://tracker.ceph.com/issues/62729
Signed-off-by: Rishabh Dave <[email protected]>
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.

4 participants