Re: [PATCH] kcov: properly check if we are in an interrupt

From: Peter Zijlstra
Date: Tue Sep 27 2016 - 03:34:35 EST


On Tue, Sep 27, 2016 at 08:21:32AM +0200, Dmitry Vyukov wrote:
>
> I suspect there is a bunch of places that use in_interrupt(), but mean
> the same as KCOV wants -- am I in interrupt? and not am I in interrupt
> context or in normal task context but inside local_bh_disable(). For
> example, why does fput handles closure asynchronously if the task
> called local_bh_disable?

Agreed, but it would mean auditing all in_interrupt()/irq_count() users.