Remove redundant must_use attributes in embedding API#2043
Merged
Conversation
4 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…) (#3504) Evaluate provided-buffer rings (PBUF_RING, kernel 5.19+) against the existing IORING_REGISTER_BUFFERS path. Survey current io_uring read sites in fast_io, document the layered kernel-version fallback chain, and recommend keeping IoUringReader on READ_FIXED while reserving PBUF_RING for stream receive paths (IoUringSocketReader and a future IoUringPipeReader). Document a Phase 1/2/3 plan: this audit, then opcode-aware probing surfaced via --version, then actual PBUF_RING usage gated on a benchmark.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…) (#3504) Evaluate provided-buffer rings (PBUF_RING, kernel 5.19+) against the existing IORING_REGISTER_BUFFERS path. Survey current io_uring read sites in fast_io, document the layered kernel-version fallback chain, and recommend keeping IoUringReader on READ_FIXED while reserving PBUF_RING for stream receive paths (IoUringSocketReader and a future IoUringPipeReader). Document a Phase 1/2/3 plan: this audit, then opcode-aware probing surfaced via --version, then actual PBUF_RING usage gated on a benchmark.
This was referenced May 5, 2026
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Adds a process-wide `OnceLock`-cached `pbuf_ring_supported()` probe for `IORING_REGISTER_PBUF_RING` (Linux 5.19+), surfaces it on `IoUringKernelInfo::pbuf_ring_supported`, and appends `pbuf_ring=yes/no` to the `--version` reason string. The cross-platform stub mirrors the same surface and always returns `false`. The fallback chain (PBUF_RING -> classic provide-buffers -> standard read/write -> non-Linux io_uring stub) is now documented at the module level on `io_uring/buffer_ring.rs` and `io_uring/mod.rs`, and reflected in `docs/audits/iouring-pbuf-ring.md` Phase 2 status. Refs task #2043.
oferchen
added a commit
that referenced
this pull request
May 6, 2026
Plan benchmarking regular submit_and_wait vs SQPOLL vs std I/O across small/large/mid file workloads, the CAP_SYS_NICE privilege matrix including unprivileged container (#1624), and kernels 5.6 / 5.11 / 5.15 / 6.0 / 6.6. Cross-references the session ring pool (#1408 / #1409), PBUF_RING audit (#2043), and registered-buffer adaptive sizing (#2045).
oferchen
added a commit
that referenced
this pull request
May 6, 2026
Plan benchmarking regular submit_and_wait vs SQPOLL vs std I/O across small/large/mid file workloads, the CAP_SYS_NICE privilege matrix including unprivileged container (#1624), and kernels 5.6 / 5.11 / 5.15 / 6.0 / 6.6. Cross-references the session ring pool (#1408 / #1409), PBUF_RING audit (#2043), and registered-buffer adaptive sizing (#2045).
oferchen
added a commit
that referenced
this pull request
May 6, 2026
Adds a process-wide `OnceLock`-cached `pbuf_ring_supported()` probe for `IORING_REGISTER_PBUF_RING` (Linux 5.19+), surfaces it on `IoUringKernelInfo::pbuf_ring_supported`, and appends `pbuf_ring=yes/no` to the `--version` reason string. The cross-platform stub mirrors the same surface and always returns `false`. The fallback chain (PBUF_RING -> classic provide-buffers -> standard read/write -> non-Linux io_uring stub) is now documented at the module level on `io_uring/buffer_ring.rs` and `io_uring/mod.rs`, and reflected in `docs/audits/iouring-pbuf-ring.md` Phase 2 status. Refs task #2043.
oferchen
added a commit
that referenced
this pull request
May 6, 2026
Adds a process-wide `OnceLock`-cached `pbuf_ring_supported()` probe for `IORING_REGISTER_PBUF_RING` (Linux 5.19+), surfaces it on `IoUringKernelInfo::pbuf_ring_supported`, and appends `pbuf_ring=yes/no` to the `--version` reason string. The cross-platform stub mirrors the same surface and always returns `false`. The fallback chain (PBUF_RING -> classic provide-buffers -> standard read/write -> non-Linux io_uring stub) is now documented at the module level on `io_uring/buffer_ring.rs` and `io_uring/mod.rs`, and reflected in `docs/audits/iouring-pbuf-ring.md` Phase 2 status. Refs task #2043.
oferchen
added a commit
that referenced
this pull request
May 6, 2026
Adds a process-wide `OnceLock`-cached `pbuf_ring_supported()` probe for `IORING_REGISTER_PBUF_RING` (Linux 5.19+), surfaces it on `IoUringKernelInfo::pbuf_ring_supported`, and appends `pbuf_ring=yes/no` to the `--version` reason string. The cross-platform stub mirrors the same surface and always returns `false`. The fallback chain (PBUF_RING -> classic provide-buffers -> standard read/write -> non-Linux io_uring stub) is now documented at the module level on `io_uring/buffer_ring.rs` and `io_uring/mod.rs`, and reflected in `docs/audits/iouring-pbuf-ring.md` Phase 2 status. Refs task #2043.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Plan benchmarking regular submit_and_wait vs SQPOLL vs std I/O across small/large/mid file workloads, the CAP_SYS_NICE privilege matrix including unprivileged container (#1624), and kernels 5.6 / 5.11 / 5.15 / 6.0 / 6.6. Cross-references the session ring pool (#1408 / #1409), PBUF_RING audit (#2043), and registered-buffer adaptive sizing (#2045).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a process-wide `OnceLock`-cached `pbuf_ring_supported()` probe for `IORING_REGISTER_PBUF_RING` (Linux 5.19+), surfaces it on `IoUringKernelInfo::pbuf_ring_supported`, and appends `pbuf_ring=yes/no` to the `--version` reason string. The cross-platform stub mirrors the same surface and always returns `false`. The fallback chain (PBUF_RING -> classic provide-buffers -> standard read/write -> non-Linux io_uring stub) is now documented at the module level on `io_uring/buffer_ring.rs` and `io_uring/mod.rs`, and reflected in `docs/audits/iouring-pbuf-ring.md` Phase 2 status. Refs task #2043.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#[must_use]attributes from the embedding run helpers that returnResultTesting
Codex Task