]> git.itanic.dy.fi Git - linux-stable/commit
io_uring: don't save/restore iowait state
authorJens Axboe <axboe@kernel.dk>
Mon, 11 Mar 2024 19:30:43 +0000 (13:30 -0600)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:31 +0000 (18:17 -0400)
commite0b39f2e6acc28bea6b0d8cc93ad32e1bb5f0378
treee5d801524075e8d146d805a13a8e4edb83940c32
parent62fda5c8d3444f1da9b66934a5a8692e13d55d41
io_uring: don't save/restore iowait state

[ Upstream commit 6f0974eccbf78baead1735722c4f1ee3eb9422cd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c