Skip to content

RFC mm/madvise: remove redundant mmap_lock operations from process_madvise()

SeongJae Park linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 26 repliesIn review
  2. v1 RFC1 patch 10 repliesSuperseded

Changes in v2 from the cover letter

- Split out do_madvise() and use those from vector_madvise(), instead of adding a flag to do_madvise() (Liam R. Howlett)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/madvise: split out mmap locking operations for madvise()mm/madvise.c+32 -133 replies
2/4mm/madvise: split out madvise input validity checkmm/madvise.c+22 -103 replies
3/4mm/madvise: split out madvise() behavior executionmm/madvise.c+30 -232 replies
4/4mm/madvise: remove redundant mmap_lock operations from process_madvise()mm/madvise.c+20 -212 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchShakeel ButtLorenzo StoakesDavidlohr Bueso
1/4R-b R-b R-b
2/4R-b R-b R-b
3/4R-b R-b
4/4R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [RFC PATCH v2 0/4] mm/madvise: remove redundant mmap_lock operations from process_madvise()

process_madvise() calls do_madvise() for each address range. Then, each do_madvise() invocation holds and releases same mmap_lock. Optimize the redundant lock operations by splitting do_madvise() internal logics including the mmap_lock operations, and calling the small logics directly from process_madvise() in a sequence that removes the redundant locking.

Changes from RFC v1 ([email protected])
- Split out do_madvise() and use those from vector_madvise(), instead of adding a flag to do_madvise() (Liam R. Howlett)

SeongJae Park (4):
mm/madvise: split out mmap locking operations for madvise() mm/madvise: split out madvise input validity check mm/madvise: split out madvise() behavior execution mm/madvise: remove redundant mmap_lock operations from
process_madvise()

 mm/madvise.c | 150 +++++++++++++++++++++++++++++++++++----------------
 1 file changed, 103 insertions(+), 47 deletions(-)

base-commit: b43ba6938d01ad4487028592109d4116a28b7afa

Signature · 1 line
2.39.5