Skip to content

msg/async/Event: use eventfd on Linux - #60105

Merged
SrinivasaBharath merged 1 commit into
ceph:mainfrom
MaxKellermann:eventfd
Oct 23, 2025
Merged

SrinivasaBharath merged 1 commit into
ceph:mainfrom
MaxKellermann:eventfd

Conversation

@MaxKellermann

Copy link
Copy Markdown
Member

eventfd is Linux's first-choice tool for waking up I/O event loops.
It is faster and more robust than pipes - it does not need a list of
pipe buffers, cannot become full, and writing/reading to it is a
simple memory access.

eventfd has been available since Linux 2.6.22, therefore this patch
does not do any configure-time checks and no runtime fallback. If
we're linux, it must be available.

To avoid an ABI breakage, both fields notify_receive_fd and
notify_send_fd remain, both set to the same eventfd value.

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)

@MaxKellermann

Copy link
Copy Markdown
Member Author

"ceph API tests": " The package ceph-libboost-context1.85-dev needs to be reinstalled, but I can't find an archive for it." -> bogus CI failure

"make check": "Terminated / Build step 'Execute shell' marked build as failure" -> ???? bogus?

@github-actions

github-actions Bot commented Dec 7, 2024

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 Dec 7, 2024
@MaxKellermann

Copy link
Copy Markdown
Member Author

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.

My change is still appropriate, but there was no feedback at all. But how can I ask for a code review? Who to ask?

Hello Ceph maintainers! I have 17 open (non-draft) PRs that are waiting to be merged! https://github.com/ceph/ceph/pulls/MaxKellermann

@github-actions

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

Copy link
Copy Markdown
Member Author

Apparently, nobody is interested in this change?

@tchaikov

tchaikov commented Apr 1, 2025

Copy link
Copy Markdown
Contributor

let me take a look.

@tchaikov
tchaikov requested review from Copilot and tchaikov April 1, 2025 01:28

Copilot AI 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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • src/msg/async/Event.cc: Language not supported

@MaxKellermann

Copy link
Copy Markdown
Member Author

@tchaikov?

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

@MaxKellermann hi Max, sorry for the latency. left a few comments.

Comment thread src/msg/async/Event.cc Resolved
Comment thread src/msg/async/Event.cc Resolved
Comment thread src/msg/async/Event.cc Resolved
eventfd is Linux's first-choice tool for waking up I/O event loops.
It is faster and more robust than pipes - it does not need a list of
pipe buffers, cannot become full, and writing/reading to it is a
simple memory access.

eventfd has been available since Linux 2.6.22, therefore this patch
does not do any configure-time checks and no runtime fallback.  If
we're __linux__, it must be available.

To avoid an ABI breakage, both fields `notify_receive_fd` and
`notify_send_fd` remain, both set to the same eventfd value.

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

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 Jul 20, 2025
@github-actions github-actions Bot removed the stale label Jul 30, 2025
@MaxKellermann

Copy link
Copy Markdown
Member Author

It's been nearly 10 months....

@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

@shraddhaag

Copy link
Copy Markdown
Contributor

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.

5 participants