Skip to content

osd: include cleanup - #68593

Merged
tchaikov merged 17 commits into
ceph:mainfrom
MaxKellermann:osd_includes2
Oct 16, 2026
Merged

tchaikov merged 17 commits into
ceph:mainfrom
MaxKellermann:osd_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

@MaxKellermann
MaxKellermann requested a review from a team as a code owner April 24, 2026 07:55
@MaxKellermann
MaxKellermann force-pushed the osd_includes2 branch 2 times, most recently from be5c4dc to 6107fc3 Compare April 24, 2026 09:09
@MaxKellermann
MaxKellermann requested a review from a team as a code owner April 24, 2026 09:09
@MaxKellermann
MaxKellermann force-pushed the osd_includes2 branch 2 times, most recently from efa1ce9 to 456f6bf Compare April 24, 2026 11:03
Comment thread src/include/variant_print.h Resolved
Comment thread src/osd/osd_types.h Resolved

@tchaikov tchaikov 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.

lgtm. modulo the copyright header issue.

@MaxKellermann

Copy link
Copy Markdown
Member Author

jenkins test make check

@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@MaxKellermann
MaxKellermann requested a review from a team as a code owner May 4, 2026 09:08
@github-actions github-actions Bot added rbd and removed needs-rebase labels May 4, 2026
@MaxKellermann

Copy link
Copy Markdown
Member Author

Rebased to fix merge conflict with commits that have been pushed meanwhile.

@MaxKellermann

Copy link
Copy Markdown
Member Author

Rebase & dropped the Crimson commit that was merged already (#68790)

@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.

@anrao19 anrao19 added the RGW-TESTED testing from rgw completed label Oct 15, 2026
@anrao19

anrao19 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

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]>
This fixes the clang warning:

 src/test/cls_log/test_cls_log.cc:91:22: error: conditional expression is ambiguous; 'time_point<[...], duration<typename common_type<unsigned long, long long>::type, [...]>>' can be converted to 'time_point<[...], duration<unsigned long, [...]>>' and vice versa
    91 |   return modify_time ? start_time + (i * 1s) : start_time;
       |                      ^ ~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~

Signed-off-by: Max Kellermann <[email protected]>
Bug introduced by commit c9d0c5e
("test/osd: OSDMapTestHelpers: add pool min_size and OSD add/upmap
helpers") from PR ceph#71844 (@aainscow).

Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
This is pretty generic code that has really nothing to do with OSD.
It is also used by sources that don't include osd_types.h directly,
which might eventually lead to build failures.

Signed-off-by: Max Kellermann <[email protected]>
This allows instantiating the whole class without triggering a
static_assert failure.

Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
`HitSet.h` is a header that is included implicitly by many other
headers via `osd_types.h`.  Splitting it allows dropping lots of heavy
dependencies like `bloom_filter.h`.

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

@tchaikov tchaikov 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.

lgtm

@tchaikov
tchaikov merged commit a792086 into ceph:main Oct 16, 2026
15 of 16 checks passed
@MaxKellermann
MaxKellermann deleted the osd_includes2 branch October 16, 2026 04:34
djgalloway added a commit to djgalloway/ceph that referenced this pull request Oct 21, 2026
The Ubuntu 24.04 x86_64 debug build has failed to link bin/neorados
since PR ceph#68593 (osd: include cleanup):

  undefined reference to `librados::v14_2_0::ObjectOperation::ObjectOperation()'
  undefined reference to `librados::v14_2_0::IoCtx::operate(...)'

libneorados links cls_lock_client, but nothing in neorados uses it. In
a Debug build with Ubuntu's default fat LTO, Boost program_options needs
std::string::operator[]. The linker takes it from a weak copy in
cls_lock_client.cc.o, and the rest of that object needs librados, which
bin/neorados does not link.

Drop cls_lock_client from libneorados. ceph_test_librbd and
ceph_test_rbd_mirror only got it through libneorados, so link it there
directly, alongside the cls_rbd_client and cls_journal_client they
already list. The other targets that link rbd_internal already do this.

Co-authored-by: Kyle Bader <[email protected]>
Assisted-by: Claude Opus 5.5
Signed-off-by: David Galloway <[email protected]>
@mmgaggle mmgaggle mentioned this pull request Oct 27, 2026
5 of 14 tasks
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.

8 participants