]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:20:07 +0000 (18:20 -0400)
commite627c433c83d543d75e06fa72021f7a401c4992f
treeaf60b3015038c4cf47e28086ce5b2fdce4ae53dc
parent2584d6bbc2bca1819059907990fcbec8228b2090
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