io_uring: don't save/restore iowait state for-6.9/io_uring
authorJens Axboe <axboe@kernel.dk>
Mon, 11 Mar 2024 19:30:43 +0000 (13:30 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Mar 2024 19:30:43 +0000 (13:30 -0600)
commit0759ee279affa846a1c315b255ee5600f82bca3f
tree4e36adc45f500f73df8d419bdfc1f4df5039528c
parent606559dc4fa36a954a51fbf1c6c0cc320f551fe0
io_uring: don't save/restore iowait state

This kind of state is per-syscall, and since we're doing the waiting off
entering the io_uring_enter(2) syscall, there's no way that iowait can
already be set for this case. Simplify it by setting it if we need to,
and always clearing it to 0 when done.

Fixes: 7b72d661f1f2 ("io_uring: gate iowait schedule on having pending requests")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c