linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Use arch_make_folio_accessible() everywhere
@ 2023-09-15 17:28 Matthew Wilcox (Oracle)
  2023-09-15 17:28 ` [PATCH 1/3] mm: Use arch_make_folio_accessible() in gup_pte_range() Matthew Wilcox (Oracle)
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Matthew Wilcox (Oracle) @ 2023-09-15 17:28 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Matthew Wilcox (Oracle), linux-mm, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Claudio Imbrenda, linux-s390, kvm

We introduced arch_make_folio_accessible() a couple of years
ago, and it's in use in the page writeback path.  GUP still uses
arch_make_page_accessible(), which means that we can succeed in making
a single page of a folio accessible, then fail to make the rest of the
folio accessible when it comes time to do writeback and it's too late
to do anything about it.  I'm not sure how much of a real problem this is.

Switching everything around to arch_make_folio_accessible() also lets
us switch the page flag to be per-folio instead of per-page, which is
a good step towards dynamically allocated folios.

Build-tested only.

Matthew Wilcox (Oracle) (3):
  mm: Use arch_make_folio_accessible() in gup_pte_range()
  mm: Convert follow_page_pte() to use a folio
  s390: Convert arch_make_page_accessible() to
    arch_make_folio_accessible()

 arch/s390/include/asm/page.h |  5 ++--
 arch/s390/kernel/uv.c        | 46 +++++++++++++++++++++++-------------
 arch/s390/mm/fault.c         | 15 ++++++------
 include/linux/mm.h           | 20 ++--------------
 mm/gup.c                     | 22 +++++++++--------
 5 files changed, 54 insertions(+), 54 deletions(-)

-- 
2.40.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-18 11:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-15 17:28 [PATCH 0/3] Use arch_make_folio_accessible() everywhere Matthew Wilcox (Oracle)
2023-09-15 17:28 ` [PATCH 1/3] mm: Use arch_make_folio_accessible() in gup_pte_range() Matthew Wilcox (Oracle)
2023-09-15 17:28 ` [PATCH 2/3] mm: Convert follow_page_pte() to use a folio Matthew Wilcox (Oracle)
2023-09-15 17:28 ` [PATCH 3/3] s390: Convert arch_make_page_accessible() to arch_make_folio_accessible() Matthew Wilcox (Oracle)
2023-09-15 17:54 ` [PATCH 0/3] Use arch_make_folio_accessible() everywhere Claudio Imbrenda
2023-09-15 18:17   ` Matthew Wilcox
2023-09-18 11:01     ` Claudio Imbrenda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).