v6
2026-09-13
提升 folio 引用计数可扩展性 · v6
将 folio refcount 拆为计数和 dead/frozen 位,以乐观递增替代 CAS,提升同页并发读扩展性。
原始补丁链接
子 Patch(3)
1/3
gve: reduce pagecnt_bias to USHRT_MAX
Google GVE driver bumps page refcount with INT_MAX ghost users instead of the usual USHRT_MAX like other drivers. This INT_MAX bump brings refcount dangerously close to an overflow. This works fine f
2/3
mm: drop page refcount zero state semantics
[mm: drop page refcount zero state semantics] Some call sites manipulate page refcount directly based on its own assumptions of the refcount int value. Instead of making such assumptions these call si
3/3
mm: implement page refcount locking via dedicated bit
[mm: implement page refcount locking via dedicated bit] The current page refcount implementation uses a single counter value (zero) as dead. So, to prevent incrementing a dead refcount in folio_try_ge