[PATCH] maple_tree: Fix handle of invalidated state in mas_wr_store_setup()

Liam Howlett liam.howlett at oracle.com
Tue Jan 10 06:21:15 PST 2023


* SeongJae Park <sj at kernel.org> [230109 18:43]:
> Hi Andrew,
> 
> On Mon, 9 Jan 2023 15:40:12 -0800 Andrew Morton <akpm at linux-foundation.org> wrote:
> 
> > On Mon,  9 Jan 2023 19:22:48 +0000 SeongJae Park <sj at kernel.org> wrote:
> > 
> > > On Mon, 9 Jan 2023 16:55:42 +0000 Liam Howlett <liam.howlett at oracle.com> wrote:
> > > 
> > > > If an invalidated maple state is encountered during write, reset the
> > > > maple state to MAS_START.  This will result in a re-walk of the tree to
> > > > the correct location for the write.
> > 
> > Can we think of a Fixes: for this?

It wasn't really an issue until I wrote the vma iterator store
function.

You can put this before (mm-unstable git id..)
9df3d25a97ec ("mm: expand vma iterator interface")

> > 
> > > > Link: https://lore.kernel.org/all/20230107020126.1627-1-sj@kernel.org/
> > > > Reported-by: SeongJae Park <sj at kernel.org>
> > > > Signed-off-by: Liam R. Howlett <Liam.Howlett at oracle.com>
> > > 
> > > Tested-by: SeongJae Park <sj at kernel.org>
> > > 
> > > I confirmed this patch fixes the boot failure issue.  Nevertheless, the 'make
> > > install' issue on my system is still not fixed.
> > 
> > Is this a mainline issue or an mm-unstable issue?
> 
> It's mm-unstable issue:
> https://lore.kernel.org/linux-mm/20230107023954.1841-1-sj@kernel.org/

Yes, just mm-unstable.


More information about the maple-tree mailing list