sched/core: change rq->nr_iowait type to atomic_long_t on 64-bit
authorJens Axboe <axboe@kernel.dk>
Sun, 10 Mar 2024 20:50:06 +0000 (14:50 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2024 14:12:59 +0000 (08:12 -0600)
commitd701dcc8b0304f542cacd286de3e0a4f4c6c11ed
tree07070bfb2151486ef53ee352c9fb986fe970c652
parent79ddd5b5f8fe5673670ea57fa59e9f04abb1015f
sched/core: change rq->nr_iowait type to atomic_long_t on 64-bit

In preparation for storing two separate iowait states in there, bump the
size from a 32-bit to a 64-bit size, for 64-bit kernels.

Note that on 32-bit, the number of tasks are limited to 0x8000, which
fits just fine in even half of the existiing 32-bit atomic_t. For 64-bit,
no such limit exists, hence play it safe and make it a 64-bit atomic.

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