Skip to content

Lockless memory allocator and list

Huang Ying linux-acpi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 of 3 patches 0 repliesNew

v5 from the cover letter

- Add ARCH_HAVE_NMI_SAFE_CMPXCHG
- Add spin_trylock_irqsave based fallback in lockless memory allocator if ARCH_HAVE_NMI_SAFE_CMPXCHG=n
- Make lockless list depends on ARCH_HAVE_NMI_SAFE_CMPXCHG

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/3lib, Make gen_pool memory allocator locklessinclude/linux/bitmap.h include/linux/genalloc.h lib/bitmap.c +1 more+312 -480 replies
3/3lib, Add lock-less NULL terminated single listinclude/linux/llist.h lib/Kconfig lib/Makefile +1 more+178 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndi Kleen
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v5 0/3] Lockless memory allocator and list

This patchset adds a lockless memory allocator and a lock-less list.

v5:

- Add ARCH_HAVE_NMI_SAFE_CMPXCHG
- Add spin_trylock_irqsave based fallback in lockless memory allocator if ARCH_HAVE_NMI_SAFE_CMPXCHG=n
- Make lockless list depends on ARCH_HAVE_NMI_SAFE_CMPXCHG

v4:

- Split from APEI patchset
- Update patch description and comments according to ML comments

v3:

- Rework lockless memory allocator and list according to ML comments

[PATCH -v5 1/3] Add Kconfig option ARCH_HAVE_NMI_SAFE_CMPXCHG [PATCH -v5 2/3] lib, Make gen_pool memory allocator lockless [PATCH -v5 3/3] lib, Add lock-less NULL terminated single list