sched/core: add helpers for iowait handling
authorJens Axboe <axboe@kernel.dk>
Sun, 10 Mar 2024 20:41:40 +0000 (14:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Aug 2024 20:40:18 +0000 (14:40 -0600)
commit9dfc2f8956a947e1664e86f27ecd3c1ff799ca1c
tree9d603a5ddac985958aa1e4c4f386a6baf26d56fc
parent4865c952b801a27e1baa9c2291b15e8b9e3117c0
sched/core: add helpers for iowait handling

Adds helpers to inc/dec the runqueue iowait count, based on the task, and
use those in the spots where the count is manipulated.

Adds an rq_iowait() helper, to abstract out how the per-rq stats are read.

No functional changes in this patch, just in preparation for switching
the type of 'nr_iowait'.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/sched/core.c
kernel/sched/cputime.c
kernel/sched/sched.h