zsmalloc: remove bit_spin_lock
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 4 repliesIn review 8 of 9 applied
- v18 patches 9 repliesSuperseded
Patches in v2 8 of 9 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | zsmalloc: introduce some helper functionsmm/ | +23 | 0 replies | Applied |
| 2/9 | zsmalloc: rename zs_stat_type to class_stat_typemm/ | +12 | 0 replies | Applied |
| 3/9 | zsmalloc: decouple class actions from zspage worksmm/ | +13 | 0 replies | Applied |
| 4/9 | zsmalloc: introduce obj_allocatedmm/ | +16 | 0 replies | Applied |
| 5/9 | zsmalloc: move huge compressed obj from page to zspagemm/ | +26 | 0 replies | Applied |
| 6/9 | zsmalloc: remove zspage isolation for migrationmm/ | +8 | 0 replies | Applied |
| 7/9 | locking/rwlocks: introduce write_lock_nestedinclude/ include/ include/ +3 more | +40 | 4 replies | |
| 8/9 | zsmalloc: replace per zpage lock with pool->migrate_lockmm/ | +96 | 0 replies | Applied |
| 9/9 | zsmalloc: replace get_cpu_var with local_lockmm/ | +8 | 0 replies | Applied |
Reviews trailers per patch
1 of 9 patches has a Reviewed-by or Acked-by.
| Patch | Peter Zijlstra (Intel) | Sebastian Andrzej Siewior |
|---|---|---|
| 1/9 | ||
| 2/9 | ||
| 3/9 | ||
| 4/9 | ||
| 5/9 | ||
| 6/9 | ||
| 7/9 | A-b | A-b |
| 8/9 | ||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/9] zsmalloc: remove bit_spin_lock
The zsmalloc has used bit_spin_lock to minimize space overhead since it's zpage granularity lock. However, it causes zsmalloc non-working under PREEMPT_RT as well as adding too much complication.
This patchset tries to replace the bit_spin_lock with per-pool rwlock. It also removes unnecessary zspage isolation logic from class, which was the other part too much complication added into zsmalloc.
Last patch changes the get_cpu_var to local_lock to make it work in PREEMPT_RT.
Mike Galbraith (1):
zsmalloc: replace get_cpu_var with local_lock
Minchan Kim (8):
zsmalloc: introduce some helper functions
zsmalloc: rename zs_stat_type to class_stat_type
zsmalloc: decouple class actions from zspage works
zsmalloc: introduce obj_allocated
zsmalloc: move huge compressed obj from page to zspage
zsmalloc: remove zspage isolation for migration locking/rwlocks: introduce write_lock_nested
zsmalloc: replace per zpage lock with pool->migrate_lock
include/linux/rwlock.h | 6 + include/linux/rwlock_api_smp.h | 9 + include/linux/rwlock_rt.h | 6 + include/linux/spinlock_api_up.h | 1 + kernel/locking/spinlock.c | 6 + kernel/locking/spinlock_rt.c | 12 + mm/zsmalloc.c | 529 ++++++++++++-------------------- 7 files changed, 228 insertions(+), 341 deletions(-)
Signature · 5 lines
* from v1 - https://lore.kernel.org/linux-mm/[email protected]/ * add write_lock_nested for rwlock * change fromline to "Mike Galbraith" - bigeasy@ 2.34.0.rc1.387.gb447b232ab-goog