mm: preemptibility
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | mm: Move anon_vma ref out from under CONFIG_KSMinclude/ mm/ mm/ | +5 | 0 replies | |
| 2/7 | mm: Make use of the anon_vma ref countinclude/ mm/ mm/ +1 more | +43 | 0 replies | |
| 3/7 | mm: Preemptible mmu_gatherfs/ include/ include/ +2 more | +53 | 0 replies | |
| 4/7 | lockdep, mutex: Provide mutex_lock_nest_lockinclude/ include/ kernel/ | +29 | 0 replies | |
| 5/7 | mutex: Provide mutex_is_contendedinclude/ | +5 | 0 replies | |
| 6/7 | mm: Convert i_mmap_lock and anon_vma->lock to mutexesarch/ fs/ fs/ +13 more | +74 | 0 replies | |
| 7/7 | mm: Optimize page_lock_anon_vmamm/ | +61 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] mm: preemptibility
Hi,
This (incomplete) patch-set makes part of the mm a lot more preemptible. It converts i_mmap_lock and anon_vma->lock to mutexes.
On the way there it also makes mmu_gather 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 we 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 be wanted by KSM as well as Mel's compaction work.
This patch set seems to build and boot on my x86_64 machine and even builds a kernel. I'll work on getting PPC working again and audit other architectures their mmu_gather implementation.