Re: [PATCH] clk: fix possible circular locking in clk_notifier_register()

From: Stephen Boyd
Date: Thu Jun 10 2021 - 17:18:18 EST


Quoting Sean Nyekjaer (2021-06-10 00:23:30)
> On 10/06/2021 09.17, Sean Nyekjaer wrote:
> > Allocating memory with prepare_lock mutex held makes lockdep unhappy
> > when memory pressure makes the system do fs_reclaim on eg. rawnand using
> > clk.
> >
> > Push the allocation outside the lock.
> >
> [...]
> >
> > Signed-off-by: Sean Nyekjaer <sean@xxxxxxxxxx>
> Fixes: b2476490ef111 ("clk: introduce the common clock framework")
>
> We could possibly add this fixes tag ^^

Sure.