Skip to content

neorados: specify alignments for aligned_storage - #66396

Merged
batrick merged 1 commit into
ceph:mainfrom
cbodley:wip-73750
Mar 20, 2026
Merged

batrick merged 1 commit into
ceph:mainfrom
cbodley:wip-73750

Conversation

@cbodley

@cbodley cbodley commented Nov 24, 2025 •

Copy link
Copy Markdown
Contributor

the default alignment of Alignment = std::bit_ceil(S) was a very conservative estimate. reduce that to alignof(std::max_align_t) to match the old behavior, then assert on construction that the given alignment is large enough for the implementation's type

Fixes: https://tracker.ceph.com/issues/73750

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

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

Thank you ever so much. This was the worst.

@cbodley

cbodley commented Nov 24, 2025

Copy link
Copy Markdown
Contributor Author

oops,

/ceph/src/neorados/RADOS.cc:77:17: error: 'alignof' applied to an expression is a GNU extension [-Werror,-Wgnu-alignof-expression]
   77 |   static_assert(alignof(impl) >= alignof(object_t));

Comment thread src/include/neorados/RADOS.hpp Resolved
the default alignment of `Alignment = std::bit_ceil(S)` was a very
conservative estimate. reduce that to `alignof(std::max_align_t)` to
match the old behavior, then assert on construction that the given
alignment is large enough for the implementation's type

Fixes: https://tracker.ceph.com/issues/73750

Signed-off-by: Casey Bodley <[email protected]>

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

also fixes the following segf which occurs when performing radosgw-admin user create in a vstart env built with clang 19 and -march=native , ex:

echo ${RANDOM} ; gdb --args radosgw-admin user create --display-name="cosbench_s3" --uid=cosbench${RANDOM} --access-key b2345678901234567890${RANDOM} --secret b2345678901234567890123456
78901234567890${RANDOM} --debug_rgw=30
Image

@ljflores

Copy link
Copy Markdown
Member

@cbodley I will test this to ensure it's working on the rados side.

@cbodley

cbodley commented Nov 25, 2025

Copy link
Copy Markdown
Contributor Author

https://jenkins.ceph.com/job/ceph-pull-requests-arm64/83735/

The following tests FAILED:
33 - run-rbd-unit-tests-109.sh (Failed)

@cbodley

cbodley commented Nov 25, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@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

@cbodley

cbodley commented Dec 1, 2025

Copy link
Copy Markdown
Contributor Author

@ljflores

ljflores commented Dec 1, 2025

Copy link
Copy Markdown
Member

@batrick

batrick commented Feb 7, 2026

Copy link
Copy Markdown
Member

batrick added a commit to batrick/ceph that referenced this pull request Feb 12, 2026
* refs/pull/66396/head:
	neorados: specify alignments for aligned_storage
@batrick

batrick commented Mar 6, 2026

Copy link
Copy Markdown
Member

@cbodley cbodley mentioned this pull request Mar 10, 2026
4 of 14 tasks
@batrick
batrick merged commit 1330473 into ceph:main Mar 20, 2026
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/23363976083

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