v5
2026-08-12
全配置启用 per-VMA 锁并清理 · v5
v5:per-VMA 锁改为普遍可用,binder/tcp 移除 mmap_lock 回退路径,新增 RCU VMA 查找助手。
原始补丁链接
子 Patch(5)
1/5
mm: Make per-VMA locks available universally
From: Dave Hansen dave.hansen@linux.intel.com The per-VMA locks have been around for several years. They’ve had some bugs worked out of them and have seen quite wide use. However, they are still on
2/5
binder: Make shrinker rely solely on per-VMA lock
From: Dave Hansen dave.hansen@linux.intel.com tl;dr: lock_vma_under_rcu() is already a trylock. No need to do both it and mmap_read_trylock(). Long Version: == Background == Historically, binder
3/5
mm: Add RCU-based VMA lookup helper that waits for writers
From: Dave Hansen dave.hansen@linux.intel.com There are basically two parallel ways to look up a VMA: the traditional way, which is protected by mmap_read_lock, and the RCU-based per-VMA lock way w
4/5
binder: Remove mmap_lock fallback
From: Dave Hansen dave.hansen@linux.intel.com Previously, the per-VMA locking could fail in the face of writers which necessitate a fallback to mmap_lock. The new vma_start_read_unlocked() will wai
5/5
tcp: Remove mmap_lock fallback path
From: Dave Hansen dave.hansen@linux.intel.com Previously, the per-VMA locking could fail in the face of writers which necessitates a fallback to mmap_lock. The new vma_start_read_unlocked() will wa