Skip to content

mds: include cleanup - #68396

Merged
vshankar merged 21 commits into
ceph:mainfrom
MaxKellermann:mds_includes2
Sep 8, 2026
Merged

vshankar merged 21 commits into
ceph:mainfrom
MaxKellermann:mds_includes2

Conversation

@MaxKellermann

Copy link
Copy Markdown
Member

Another PR split from #60490

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
  • jenkins test rook e2e

@github-actions github-actions Bot added build/ops cephfs Ceph File System labels Apr 15, 2026
@dparmar18
dparmar18 requested a review from a team April 16, 2026 10:07
@batrick batrick added the DNM label May 11, 2026
@batrick

batrick commented May 11, 2026

Copy link
Copy Markdown
Member

Please do not merge this without my ack. #include changes like this are making a mess of some high priority fixes I have upcoming.

@joscollin

Copy link
Copy Markdown
Member

Please do not merge this without my ack. #include changes like this are making a mess of some high priority fixes I have upcoming.

These cleanup PR(s) cause several conflicts in squid backports. We need to introduce a better way to merge the cleanups in the main branch. I'm thinking of a separate merge cycle for cleanup PRs or one file change per commit.

@MaxKellermann

Copy link
Copy Markdown
Member Author

separate merge cycle for cleanup PRs or one file change per commit

I don't understand how doing that would mitigate the merge conflicts, because the end result would be exactly the same, and after a merge, the way to a certain state of the source tree does not matter.

But if you want me to choose a different separation of commits, I'll do so. But what I see in this PR is that there is already "one file change per commit" as much as technically possible.
Usually, I do a single "subsystem: add missing includes" because I thought it's not worth it to split that further, but in this PR, that first commit actually touches only one source file (because the rest of the missing includes had already been merged in previous PRs).

(btw. I have to fix conflicts in my PRs all the time because other PRs get merged that cause such conflicts. In a lively code base, that is expected - even more so with backports to an older branch. Just normal business.)

@joscollin

Copy link
Copy Markdown
Member

separate merge cycle for cleanup PRs or one file change per commit

I don't understand how doing that would mitigate the merge conflicts, because the end result would be exactly the same, and after a merge, the way to a certain state of the source tree does not matter.

It won't mitigate the backport merge conflicts. But atleast, it would keep it clean and easier for important works to get backported.

But if you want me to choose a different separation of commits, I'll do so. But what I see in this PR is that there is already "one file change per commit" as much as technically possible. Usually, I do a single "subsystem: add missing includes" because I thought it's not worth it to split that further, but in this PR, that first commit actually touches only one source file (because the rest of the missing includes had already been merged in previous PRs).

(btw. I have to fix conflicts in my PRs all the time because other PRs get merged that cause such conflicts. In a lively code base, that is expected - even more so with backports to an older branch. Just normal business.)

For backports, the process is to minimise conflicts and manual edits. The cleanup PRs won't be backported to stable releases. So if the cleanup PR has one file change per commit, then it would be easier for important fixes/features to get backported minimising the conflicts. I was thinking, just cherry-pick/fix that particular file cleanup instead of fixing the entire thing that requires additional QA.

@MaxKellermann

Copy link
Copy Markdown
Member Author

So if the cleanup PR has one file change per commit

That's what this PR is already doing, isn't it? Or do you have a specific suggestions on how to change this PR in order to make Ceph backports easier?

Signed-off-by: Max Kellermann <[email protected]>
Reduce header dependencies of CInode.h.

Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Un-inlining the destructor allows removing the <lua.hpp> header
dependency from the Mantle.h header.

Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
@MaxKellermann

Copy link
Copy Markdown
Member Author

That's what this PR is already doing, isn't it? Or do you have a specific suggestions on how to change this PR in order to make Ceph backports easier?

@joscollin, please clarify

@MaxKellermann

Copy link
Copy Markdown
Member Author

@joscollin?

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Aug 7, 2026
@vshankar vshankar removed the stale label Aug 7, 2026
@vshankar

vshankar commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

separate merge cycle for cleanup PRs or one file change per commit

I don't understand how doing that would mitigate the merge conflicts, because the end result would be exactly the same, and after a merge, the way to a certain state of the source tree does not matter.

But if you want me to choose a different separation of commits, I'll do so. But what I see in this PR is that there is already "one file change per commit" as much as technically possible. Usually, I do a single "subsystem: add missing includes" because I thought it's not worth it to split that further, but in this PR, that first commit actually touches only one source file (because the rest of the missing includes had already been merged in previous PRs).

(btw. I have to fix conflicts in my PRs all the time because other PRs get merged that cause such conflicts. In a lively code base, that is expected - even more so with backports to an older branch. Just normal business.)

I agree. BTW, this change is currently blocked as per @batrick comment #68396 (comment).

@batrick

batrick commented Aug 19, 2026

Copy link
Copy Markdown
Member

Please do not merge this without my ack. #include changes like this are making a mess of some high priority fixes I have upcoming.

The CephX change is merged. this can proceed.

@vshankar

vshankar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-09-02-13:52.

@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 7c7748c into ceph:main Sep 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants