mm: Preemptibility -v7
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest25 patches 25 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | tile: Fix __pte_free_tlbarch/ | +2 | 3 replies | |
| 2/25 | mm: Preemptible mmu_gatherfs/ include/ include/ +2 more | +54 | 0 replies | |
| 3/25 | powerpc: Preemptible mmu_gatherarch/ arch/ arch/ +5 more | +49 | 0 replies | |
| 4/25 | sparc: Preemptible mmu_gatherarch/ arch/ arch/ +2 more | +51 | 1 reply | |
| 5/25 | s390: preemptible mmu_gatherarch/ | +25 | 0 replies | |
| 6/25 | arm: Preemptible mmu_gatherarch/ | +2 | 0 replies | |
| 7/25 | sh: Preemptible mmu_gatherarch/ | +2 | 0 replies | |
| 8/25 | um: Preemptible mmu_gatherarch/ | +2 | 0 replies | |
| 9/25 | ia64: Preemptible mmu_gatherarch/ | +25 | 4 replies | |
| 10/25 | mm: Now that all old mmu_gather code is gone, remove the storagearch/ arch/ arch/ +17 more | +0 | 0 replies | |
| 11/25 | mm, powerpc: Move the RCU page-table freeing into generic codearch/ arch/ arch/ +7 more | +151 | 0 replies | |
| 12/25 | lockdep, mutex: Provide mutex_lock_nest_lockinclude/ include/ kernel/ | +29 | 0 replies | |
| 13/25 | mutex: Provide mutex_is_contendedinclude/ | +5 | 0 replies | |
| 14/25 | mm: Convert i_mmap_lock to a mutexDocumentation/ Documentation/ arch/ +17 more | +70 | 0 replies | |
| 15/25 | mm: Extended batches for generic mmu_gatherinclude/ | +82 | 0 replies | |
| 16/25 | mm: Revert page_lock_anon_vma() lock annotationinclude/ mm/ | +2 | 0 replies | |
| 17/25 | mm: Improve page_lock_anon_vma() commentmm/ | +16 | 0 replies | |
| 18/25 | mm: Rename drop_anon_vma to put_anon_vmainclude/ mm/ mm/ +1 more | +11 | 0 replies | |
| 19/25 | mm: Move anon_vma ref out from under CONFIG_KSMinclude/ mm/ | +10 | 0 replies | |
| 20/25 | mm: Simplify anon_vma refcountsinclude/ mm/ | +37 | 3 replies | |
| 21/25 | mm: Use refcounts for page_lock_anon_vma()mm/ mm/ | +31 | 0 replies | |
| 22/25 | mm: Convert anon_vma->lock to a mutexinclude/ include/ include/ +3 more | +21 | 3 replies | |
| 23/25 | mm: Optimize page_lock_anon_vma() fast-pathmm/ | +78 | 0 replies | |
| 24/25 | mm: Remove i_mmap_mutex lockbreakinclude/ include/ include/ +4 more | +27 | 0 replies | |
| 25/25 | mm, arch: Ensure we never tlb_flush_mmu() from atomic contextarch/ arch/ arch/ +4 more | +99 | 0 replies |
Reviews trailers per patch
15 of 25 patches have a Reviewed-by or Acked-by.
| Patch | KAMEZAWA Hiroyuki | Hugh Dickins | David Miller | Nick Piggin | KOSAKI Motohiro | Mel Gorman | Tony Luck | Chris Metcalf |
|---|---|---|---|---|---|---|---|---|
| 1/25 | A-b | |||||||
| 2/25 | R-b | A-b | ||||||
| 3/25 | ||||||||
| 4/25 | A-b | |||||||
| 5/25 | ||||||||
| 6/25 | ||||||||
| 7/25 | ||||||||
| 8/25 | ||||||||
| 9/25 | A-b | |||||||
| 10/25 | ||||||||
| 11/25 | Requested-by | |||||||
| 12/25 | ||||||||
| 13/25 | R-b | |||||||
| 14/25 | A-b | |||||||
| 15/25 | R-b | A-b | Requested-by | |||||
| 16/25 | A-b | |||||||
| 17/25 | R-b | A-b | R-b | A-b | ||||
| 18/25 | R-b | A-b | ||||||
| 19/25 | R-b | A-b | A-b | |||||
| 20/25 | R-b | A-b | ||||||
| 21/25 | R-b | A-b | R-b | |||||
| 22/25 | A-b | R-b | ||||||
| 23/25 | R-b | |||||||
| 24/25 | ||||||||
| 25/25 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.
Cover letter [PATCH 00/25] mm: Preemptibility -v7
This patch-set makes part of the mm a lot more preemptible. It converts i_mmap_lock and anon_vma->lock to mutexes and makes mmu_gather fully preemptible.
The main motivation was making mm_take_all_locks() preemptible, since it appears people are nesting hundreds of spinlocks there.
The side-effects are that can finally make mmu_gather preemptible, something which lots of people have wanted to do for a long time.
It also gets us anon_vma refcounting, which seems to result in a nice cleanup of the anon_vma lifetime rules wrt KSM and compaction.
This patch-set is build and boot-tested on x86_64 (a previous version was also tested on Dave's Niagra2 machines, and I suppose s390 was too when Martin provided the conversion patch for his arch).
There are no known architectures left unconverted.
Yanmin ran the -v3 posting through the comprehensive Intel test farm and didn't find any regressions.
( Not included in this posting are the 4 Sparc64 patches that implement
gup_fast, those can be applied separately after this series gets anywhere. )
The full series (including the Sparc64 gup_fast bits) also available in -git form from (against something post .38-rc2):
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-mmu_preempt.git
Changes since -v6:
Suggested by Hugh:
- reordered the patches
- changed to GFP_NOWAIT | __GFP_NOWARN to allocate mmu_gather pages
- s/lock/mutex/ for the spinlock to mutex conversion
- removed all DEFINE_PER_CPU(struct mmu_gather, mmu_gather) remnants
- split the i_mmap_lock and anon_vma->lock conversion
- removed some KSM wrappers
- avoid tlb_flush_mmu() while holding pte_lock
Other:
- remove the i_mmap_lock lockbreak in truncate (XXX)
- arch/tile __pte_free_tlb() change
TODO:
- decide if we want to actually remove the i_mmap_lock lockbreak
- figure out if LOCK vs MB works or add a smp_mb() to patch #23
- figure out what to do with sparc's tlb_batch lack of ->fullmm
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>