mbox series

[0/4] Alternative fixes for migration

Message ID 20220404193006.1429250-1-willy@infradead.org (mailing list archive)
Headers show
Series Alternative fixes for migration | expand

Message

Matthew Wilcox (Oracle) April 4, 2022, 7:30 p.m. UTC
I heartily endorse Zi Yan's minimal fixes.  These patches, drawn from
my development tree and with absolutely no testing, are a different
approach to fixing the problem.  I would have submitted these patches
earlier if I'd known they were needed.

I think migrate_misplaced_transhuge_page() may be missing from Zi's
patch, but maybe filesystem pages can't end up in that path?  Anyway,
let me know if you like these patches better.

Matthew Wilcox (Oracle) (4):
  mm/migrate: Use a folio in alloc_migration_target()
  mm/migrate: Use a folio in migrate_misplaced_transhuge_page()
  mm: Add vma_alloc_folio()
  mm/mempolicy: Use vma_alloc_folio() in new_page()

 include/linux/gfp.h |  8 +++--
 mm/mempolicy.c      | 38 +++++++++++++--------
 mm/migrate.c        | 80 +++++++++++++++------------------------------
 3 files changed, 56 insertions(+), 70 deletions(-)

Comments

Zi Yan April 4, 2022, 7:53 p.m. UTC | #1
On 4 Apr 2022, at 15:30, Matthew Wilcox (Oracle) wrote:

> I heartily endorse Zi Yan's minimal fixes.  These patches, drawn from
> my development tree and with absolutely no testing, are a different
> approach to fixing the problem.  I would have submitted these patches
> earlier if I'd known they were needed.
>
> I think migrate_misplaced_transhuge_page() may be missing from Zi's
> patch, but maybe filesystem pages can't end up in that path?  Anyway,
> let me know if you like these patches better.

Yeah, I thought numa faulting only works on anonymous pages. I was
wrong.

>
> Matthew Wilcox (Oracle) (4):
>   mm/migrate: Use a folio in alloc_migration_target()
>   mm/migrate: Use a folio in migrate_misplaced_transhuge_page()
>   mm: Add vma_alloc_folio()
>   mm/mempolicy: Use vma_alloc_folio() in new_page()
>
>  include/linux/gfp.h |  8 +++--
>  mm/mempolicy.c      | 38 +++++++++++++--------
>  mm/migrate.c        | 80 +++++++++++++++------------------------------
>  3 files changed, 56 insertions(+), 70 deletions(-)
>
> -- 
> 2.34.1

The whole series looks good to me. My patch can be dropped. Thanks.

Reviewed-by: Zi Yan <ziy@nvidia.com>

--
Best Regards,
Yan, Zi
William Kucharski April 7, 2022, 6:14 a.m. UTC | #2
For the series:

Reviewed-by: William Kucharski <william.kucharski@oracle.com>

> On Apr 4, 2022, at 1:30 PM, Matthew Wilcox (Oracle) <willy@infradead.org> wrote:
> 
> I heartily endorse Zi Yan's minimal fixes.  These patches, drawn from
> my development tree and with absolutely no testing, are a different
> approach to fixing the problem.  I would have submitted these patches
> earlier if I'd known they were needed.
> 
> I think migrate_misplaced_transhuge_page() may be missing from Zi's
> patch, but maybe filesystem pages can't end up in that path?  Anyway,
> let me know if you like these patches better.
> 
> Matthew Wilcox (Oracle) (4):
>  mm/migrate: Use a folio in alloc_migration_target()
>  mm/migrate: Use a folio in migrate_misplaced_transhuge_page()
>  mm: Add vma_alloc_folio()
>  mm/mempolicy: Use vma_alloc_folio() in new_page()
> 
> include/linux/gfp.h |  8 +++--
> mm/mempolicy.c      | 38 +++++++++++++--------
> mm/migrate.c        | 80 +++++++++++++++------------------------------
> 3 files changed, 56 insertions(+), 70 deletions(-)
> 
> -- 
> 2.34.1
> 
>
William Kucharski April 7, 2022, 6:16 a.m. UTC | #3
Sorry for the RB from the wrong email address; mailer issue. :-)

For the series:

Reviewed-by: William Kucharski <william.kucharski@oracle.com>

> On Apr 4, 2022, at 1:30 PM, Matthew Wilcox (Oracle) <willy@infradead.org> wrote:
> 
> I heartily endorse Zi Yan's minimal fixes.  These patches, drawn from
> my development tree and with absolutely no testing, are a different
> approach to fixing the problem.  I would have submitted these patches
> earlier if I'd known they were needed.
> 
> I think migrate_misplaced_transhuge_page() may be missing from Zi's
> patch, but maybe filesystem pages can't end up in that path?  Anyway,
> let me know if you like these patches better.
> 
> Matthew Wilcox (Oracle) (4):
>  mm/migrate: Use a folio in alloc_migration_target()
>  mm/migrate: Use a folio in migrate_misplaced_transhuge_page()
>  mm: Add vma_alloc_folio()
>  mm/mempolicy: Use vma_alloc_folio() in new_page()
> 
> include/linux/gfp.h |  8 +++--
> mm/mempolicy.c      | 38 +++++++++++++--------
> mm/migrate.c        | 80 +++++++++++++++------------------------------
> 3 files changed, 56 insertions(+), 70 deletions(-)
> 
> -- 
> 2.34.1
> 
>