Re: [Intel-gfx] [PATCH] kthread: finer-grained lockdep/cross-release completion

From: Peter Zijlstra
Date: Fri Dec 08 2017 - 13:40:59 EST


On Fri, Dec 08, 2017 at 05:36:28PM +0100, Daniel Vetter wrote:

> Aside: Could/should we take some fake lockdep locks around these
> callbacks, since not all drivers call them from a hardirq context? Just to
> validate that everyone follows the contract.

What I typically do is use local_irq_save/restore over the actual
callback. Then if someone doesn't honour the contract, it shows real
quick :-)