From: Niklas Cassel <niklas.cassel@xxxxxxx> Commit 7c70f506e438 ("engines/io_uring: move sqe clear out of hot path") removed the memset of sqe from fio_ioring_prep(). Later, force_async was added in commit 5a59a81d2923 ("engines/io_uring: allow setting of IOSQE_ASYNC"). The force_async commit sets sqe->flags every N requests, however, since we no longer do a memset, this commit should have made sure that flags is always initialized, such that we don't have sqe->flags set on reused sqes where we didn't intend to. Fixes: 5a59a81d2923 ("engines/io_uring: allow setting of IOSQE_ASYNC") Signed-off-by: Niklas Cassel <niklas.cassel@xxxxxxx> --- engines/io_uring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/io_uring.c b/engines/io_uring.c index 9c091e37..269e501f 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -234,6 +234,7 @@ static int fio_ioring_prep(struct thread_data *td, struct io_u *io_u) sqe->flags = IOSQE_FIXED_FILE; } else { sqe->fd = f->fd; + sqe->flags = 0; } if (io_u->ddir == DDIR_READ || io_u->ddir == DDIR_WRITE) { -- 2.31.1