Re: [PATCHv2] sched: Account I/O waits independently of delayed dequeue
From: Zhan Xusheng
Date: Thu Oct 15 2026 - 08:02:50 EST
From: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>
On 10/15/26 12:37, Christian Loehle wrote:
> Save the CPU charged at the start of the wait. Delayed tasks can migrate
> while still queued, and proxy execution can also move blocked tasks.
> Decrement the saved CPU's counter on unblock, regardless of the task's
> current placement, and remove the old dequeue-based accounting.
This addresses what I reported, and the nr_iowait pairing holds for the
paths I could find, including the should_block == false one where the
decrement comes from find_proxy_task().
Reviewed-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>