Re: [PATCH] mm/swapfile: Do not sleep with a spin lock held

From: Qian Cai
Date: Wed Dec 02 2020 - 18:42:00 EST


On Wed, 2020-12-02 at 15:15 -0800, Andrew Morton wrote:
> On Wed, 2 Dec 2020 10:15:49 -0500 Qian Cai <qcai@xxxxxxxxxx> wrote:
>
> > We can't call kvfree() with a spin lock held, so defer it.
> >
>
> Fixes: 873d7bcfd066 ("mm/swapfile.c: use kvzalloc for swap_info_struct
> allocatio
> n")
>
> Do you think it's worth a cc:stable? IOW, is this known to ever
> produce a warning?

Yes, it did trigger a might_sleep() warning.