Skip to content

Prevent ->map_pages from sleeping

Matthew Wilcox (Oracle) linux-fsdevel linux-mm linux-xfs 2 versions – Applied

Status from this message: [merged mm-stable] mm-hold-the-rcu-read-lock-over-calls-to-map_pages.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesApplied 3/3
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Add tags from David Howells
- Go into more detail about the locking in the XFS patch

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3xfs: Remove xfs_filemap_map_pages() wrapperfs/xfs/xfs_file.c+1 -161 replyApplied
2/3afs: Split afs_pagecache_valid() out of afs_validate()fs/afs/file.c fs/afs/inode.c fs/afs/internal.h+22 -200 repliesApplied
3/3mm: Hold the RCU read lock over calls to ->map_pagesDocumentation/filesystems/locking.rst mm/memory.c+10 -52 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDavid HowellsDave Chinner
1/3R-b
2/3A-b T-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Prevent ->map_pages from sleeping

In preparation for a larger patch series which will handle (some, easy) page faults protected only by RCU, change the two filesystems which have sleeping locks to not take them and hold the RCU lock around calls to ->map_page to prevent other filesystems from adding sleeping locks.

v2:
- Add tags from David Howells
- Go into more detail about the locking in the XFS patch

Matthew Wilcox (Oracle) (3):
xfs: Remove xfs_filemap_map_pages() wrapper
afs: Split afs_pagecache_valid() out of afs_validate()
mm: Hold the RCU read lock over calls to ->map_pages

 Documentation/filesystems/locking.rst |  4 ++--
 fs/afs/file.c                         | 14 ++------------
 fs/afs/inode.c                        | 27 +++++++++++++++++++--------
 fs/afs/internal.h                     |  1 +
 fs/xfs/xfs_file.c                     | 17 +----------------
 mm/memory.c                           | 11 ++++++++---
 6 files changed, 33 insertions(+), 41 deletions(-)
Signature · 1 line
2.39.2