make vmalloc gfp flags usage more apparent
Status from this message: [merged mm-stable] mm-vmalloc-cleanup-gfp-flag-use-in-new_vmap_block.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 0 repliesApplied 4/4
- v34 patches 9 repliesSuperseded
- v2 posting 2/24 patches 6 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 RFC posting 1/2 | 4 patches | 8 replies | Superseded | |
| v1 RFC | 4 patches | 2 replies | Superseded |
Changes in v4 from the cover letter
- Add __GFP_NOLOCKDEP to the list of supported flags[1]
- Replace WARN() with WARN_ONCE() to ratelimit warnings[2]
- Collect some tags
Patches in v4 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mm/vmalloc: warn on invalid vmalloc gfp flagsmm/ | +26 | 0 replies | Applied |
| 2/4 | mm/vmalloc: Add a helper to optimize vmalloc allocation gfpsmm/ | +14 | 0 replies | Applied |
| 3/4 | mm/vmalloc: cleanup large_gfp in vm_area_alloc_pages()mm/ | +1 | 0 replies | Applied |
| 4/4 | mm/vmalloc: cleanup gfp flag use in new_vmap_block()mm/ | +1 | 0 replies | Applied |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Uladzislau Rezki (Sony) | SeongJae Park |
|---|---|---|---|
| 1/4 | R-b | R-b | A-b |
| 2/4 | R-b | A-b | |
| 3/4 | R-b | A-b | |
| 4/4 | R-b R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v4 0/4] make vmalloc gfp flags usage more apparent
We should do a better job at enforcing gfp flags for vmalloc. Right now, we have a kernel-doc for __vmalloc_node_range(), and hope callers pass in supported flags. If a caller were to pass in an unsupported flag, we may BUG, silently clear it, or completely ignore it.
If we are more proactive about enforcing gfp flags, we can making sure callers know when they may be asking for unsupported behavior.
This patchset lets vmalloc control the incoming gfp flags, and cleans up some hard to read gfp code.
---
Based on current mm-new.
v3 -> v4:
- Add __GFP_NOLOCKDEP to the list of supported flags[1]
- Replace WARN() with WARN_ONCE() to ratelimit warnings[2]
- Collect some tags
Previous iterations are linked through v3[3].
[1] https://lore.kernel.org/linux-mm/[email protected]/T/#m7cd63a45d0cde563158ddde5ea54e46715e34381
[2] https://lore.kernel.org/mm-commits/[email protected]/T/#t
[3] https://lore.kernel.org/linux-mm/[email protected]/
Vishal Moola (Oracle) (4):
mm/vmalloc: warn on invalid vmalloc gfp flags mm/vmalloc: Add a helper to optimize vmalloc allocation gfps mm/vmalloc: cleanup large_gfp in vm_area_alloc_pages() mm/vmalloc: cleanup gfp flag use in new_vmap_block()
mm/vmalloc.c | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 8 deletions(-)
Signature · 1 line
2.51.1