Re: [PATCH 1/1] sched.h: silent false ATOMIC_SLEEP warning from cond_resched
From: Peter Zijlstra
Date: Thu Oct 10 2024 - 05:24:59 EST
On Thu, Oct 10, 2024 at 08:56:53AM +0530, Hariom Panthi wrote:
> In case of (CONFIG_PREEMPTION && !CONFIG_PREEMPT_DYNAMIC),
> cond_reched() is not sleeping.
>
> Thus remove __might_resched in that cases.
*why* ? It's still a valid site to do the atomic_sleep testing, no?