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>
Thu, 20 Mar 2025 14:09:05 +0000 (08:09 -0600)
commit8306d6c5458321395d9639b4d0828763dcd4875a
tree21b7bd267458ebc8a8b4be3884d4fb0bef30db58
parent81e4f8d68c66da301bb881862735bd74c6241a19
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