crosvm/io_uring
Takaya Saeki 6bf5d2b6b4 io_uring: refactor prep_next_sqe to remove an argument no longer used
uring::SubmitQueue has pre-allocated io_vecs field inside it, and
prep_next_sqe provides a caller with an io_vec so that the caller
doesn't have to allocate an io_vec by itself. This used to be used by
add_rw_op before. However, no caller uses this given io_vec, but they
allocate io_vec by themselves.

This change removes io_vecs from the arguments of prep_next_sqe, and
refactor SubmitQueue structure to make it simpler.

BUG=None
TEST=cargo test -p io_uring. A vm launches by crosvm run
--async-executor uring...

Change-Id: I07bb2f496d3a2e4ca038a4dd861dd80b87ba41ef
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4546822
Commit-Queue: Takaya Saeki <takayas@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-05-19 01:34:54 +00:00
..
src io_uring: refactor prep_next_sqe to remove an argument no longer used 2023-05-19 01:34:54 +00:00
tests io_uring: make tests more DAMP 2023-05-19 01:28:35 +00:00
bindgen.sh health-check: enforce blank line after copyright 2022-09-13 22:24:35 +00:00
Cargo.toml Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00