Re: [BUG] sched/delayacct: blkio_start recorded on the wrong task when a delayed task is blocked from pick

From: K Prateek Nayak

Date: Tue Nov 03 2026 - 01:12:21 EST


Hello Kilin,

On 11/3/2026 11:31 AM, kiln wrote:
> This looks like the mirror image of c96f5471ce7d ("delayacct: Account
> blkio completion on the correct task"), which fixed the end side the same
> way. The obvious fix would be to pass p down, something like
> delayacct_blkio_start(p) setting p->delays->blkio_start (checking
> p->delays rather than current->delays). Happy to send a patch if that
> direction is okay.

Good catch and I think you should send a patch in that direction.

--
Thanks and Regards,
Prateek