Skip to content

Comments

Add Notifier to offload with smol::unblock()#13

Merged
ming1 merged 3 commits intomainfrom
notifier
Sep 26, 2025
Merged

Add Notifier to offload with smol::unblock()#13
ming1 merged 3 commits intomainfrom
notifier

Conversation

@ming1
Copy link
Collaborator

@ming1 ming1 commented Sep 26, 2025

  • add Notifier to notify uring thread after unblock().await returns.
  • optimize eventfd write by doing it in batch way

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Abstract notifier based on eventfd.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Add RefCell<u32> counter to batch notifications and minimize
unnecessary eventfd syscalls. Only write to eventfd when
counter transitions from 0 to 1, coalescing subsequent
notifications until event_read() resets the counter.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
@ming1 ming1 merged commit 6a2efbd into main Sep 26, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant