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, 28 Mar 2024 14:12:59 +0000 (08:12 -0600)
commit79ddd5b5f8fe5673670ea57fa59e9f04abb1015f
tree849b1a7bd97e894c1ad51aae5b58efec13aa2482
parent8d025e2092e29bfd13e56c78e22af25fac83c8ec
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