Re: [PATCH] test_xarray: fix soft lockup for advanced-api tests

From: Andrew Morton
Date: Tue Feb 20 2024 - 14:01:07 EST


On Tue, 20 Feb 2024 09:45:19 -0800 Luis Chamberlain <mcgrof@xxxxxxxxxx> wrote:

> > > --- a/lib/test_xarray.c
> > > +++ b/lib/test_xarray.c
> > > @@ -781,6 +781,7 @@ static noinline void *test_get_entry(struct xarray *xa, unsigned long index)
> > > {
> > > XA_STATE(xas, xa, index);
> > > void *p;
> > > + static unsigned int i = 0;
> >
> > I don't think this needs static storage.
>
> Actually it does, without it the schedule never happens and produces the
> soft lockup in the splat below.:

OK, I'll restore that.