Re: [PATCH] sched/core: decrease rq->nr_uninterruptible before set_task_cpu

From: Peter Zijlstra
Date: Tue Aug 06 2019 - 10:19:27 EST


On Tue, Aug 06, 2019 at 10:12:50PM +0800, Cheng Jian wrote:
> Migration may occur when wake up a process, so we must update
> the rq->nr_uninterruptible before set_task_cpu, otherwise we
> will decrease the nr_interuptible of the incorrect rq. Over
> time, it cause some rq accounting according to be too large,
> but others are negative.
>
> Also change the type of rq->nr_uninterruptible to atomic_t.

NAK. Also there is no actual problem description there.