Re: [PATCH v3] lockdep: Teach lockdep about memalloc_noio_save
From: Michal Hocko
Date: Wed Mar 01 2017 - 11:34:26 EST
On Wed 01-03-17 17:12:20, Peter Zijlstra wrote:
> On Wed, Mar 01, 2017 at 05:05:30PM +0100, Michal Hocko wrote:
> > Anyway, does the following help?
>
> > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
> > index 47e4f82380e4..d5386ad7ed3f 100644
> > --- a/kernel/locking/lockdep.c
> > +++ b/kernel/locking/lockdep.c
> > @@ -47,6 +47,7 @@
> > #include <linux/kmemcheck.h>
> > #include <linux/random.h>
> > #include <linux/jhash.h>
> > +#include <linux/sched.h>
>
> No, Ingo moved that to linux/sched/mm.h in tip/master, which was the
> problem.
Yeah, have seen your email after I posted mine...
> But I think this needs to go to Linus in this cycle, right? In which
> case Ingo gets to sort the fallout.
Yes I think it would be better to send it sonner rahter than later.
People also might want to backport it to older kernels...
--
Michal Hocko
SUSE Labs