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>
Sat, 17 Aug 2024 20:40:58 +0000 (14:40 -0600)
commitd4e76c644f7b202aca0b8ae68e59d68fcff8e35b
tree2708e300d7934c3b8f5aeb9f3edfc93b32bf1ee2
parent9dfc2f8956a947e1664e86f27ecd3c1ff799ca1c
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