Repository navigation
Changes
-
Add
Submitter::submit_with_args_and_flags(), which also accepts
EnterFlags::ABS_TIMERandEnterFlags::NO_IOWAITfor the wait; any other
flag fails withEINVAL -
Add
opcode::GetSockOpt, agetsockopt(2)throughIORING_OP_URING_CMD -
Add
opcode::Send::buffer_select(), to send from a provided buffer -
Submitter::submit*()refresh the cached submission queue head after
io_uring_enter, soSubmissionQueue::len()andis_full()reflect
entries consumed by the kernel without a separatesync() -
SubmitArgs::sigmask()passes the kernel signal set size,_NSIG / 8,
instead ofsize_of::<libc::sigset_t>(), which the kernel rejected with
EINVAL -
SubmissionQueue::push128()sets the user data of the paddingNopto the
newsqueue::PADDING_USER_DATA(u64::MAX) instead of0. The padding
posts a-ECANCELEDcompletion with this user data when an earlier entry of
itsIO_LINKchain fails -
SubmissionQueue::push128()no longer copiesIO_LINK/IO_HARDLINKfrom
the previous slot to the paddingNop, matching liburing. When the previous
entry was a 128-byte entry, that slot held its payload, so the flags were
read from arbitrary bytes and a link chain could be dropped. A chain of the
previous entry now ends at the padding, and the 128-byte entry runs
independently -
IoUring::from_fd()is available for all entry types and returns
InvalidInput, without closing the fd, if theSQE128,CQE32,
SQE_MIXEDorCQE_MIXEDsetup flags do not match the entry types. It
previously readSQE128andCQE32rings at the wrong entry stride. Calls
that relied on the default entry types may need a type annotation -
Submitter::register_buffers_update()returnsio::Result<usize>, the
number of buffers updated, likeregister_files_update(). The kernel stops
at the first buffer that fails and returns the count updated so far, which
was discarded, so partial updates reported success -
Builder::build()andIoUring::from_fd()returnInvalidInputfor an
SQE_MIXEDring with fewer than 4 submission queue entries. On a 2-entry
ring,SubmissionQueue::push128()at the last slot needs a padding slot plus
two slots and failed permanently -
Opcode builders build the entry in a local copy and write it to the
submission queue with one 8-byte store per word when the builder is dropped,
instead of zeroing the entry and then overwriting its fields. ARecvwith
user data takes about 1.2 ns instead of 3.1 ns. A builder passed to
mem::forgetleaves the first 64 bytes of the entry unchanged