io_uring: don't clear recently set sqe->rw_flags
authorNiklas Cassel <niklas.cassel@wdc.com>
Thu, 26 Aug 2021 16:45:05 +0000 (16:45 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Aug 2021 16:50:05 +0000 (10:50 -0600)
commitfd70e3619c00bc9f7b2f80cadf3fdb348cbacf51
tree920a514778498fc26c5e65c092985f10518f9e5d
parentff9b6876955e3d4c8f95a168197eb9301924140f
io_uring: don't clear recently set sqe->rw_flags

Commit 7c70f506e438 ("engines/io_uring: move sqe clear out of hot path")
removed the memset of sqe from fio_ioring_prep().

This commit did add a clear of the sqe->rw_flags, however, it did so
after both RWF_UNCACHED and RWF_NOWAIT flags might have been set,
effectively clearing these flags if they got set.

This doesn't make any sense. Make sure that we clear sqe->rw_flags
before, not after, setting the flags.

Fixes: 7c70f506e438 ("engines/io_uring: move sqe clear out of hot path")
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c