Re: [PATCH 4/4] mm: delay page_remove_rmap() until after the TLB has been flushed

From: Linus Torvalds
Date: Wed Nov 09 2022 - 16:04:38 EST


On Wed, Nov 9, 2022 at 12:48 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> I'm sure I messed something up in the process [...]

I hate being right.

The UP build requires a

#ifdef CONFIG_SMP
..
#endif

around the tlb_flush_rmaps() implementation in mm/mmu_gather.c, since
the UP case now shares the empty "no nothing" implementation with
s390.

I'm not going to re-send the series for that trivial fix, since nobody
is likely to actually care about UP anyway, but since I noticed it
(after sending things out, sorrt), I'll just mention it here.

And I was so happy about sharing the s390 and UP case, and avoiding
any code being specific to s390. Which is what introduced this thing.

Oh well. Easy fix. Just egg on my face. Again.

Linus