mempolicy: get_task_policy() cleanups/preparations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mempolicy: change alloc_pages_vma() to use mpol_cond_put()mm/ | +1 | 0 replies | |
| 1/4 | mempolicy: introduce __get_vma_policy(), export get_task_policy()include/ mm/ | +29 | 0 replies | |
| 2/4 | mempolicy: change get_task_policy() to return default_policy rather than NULLmm/ | +13 | 0 replies | |
| 2/4 | mempolicy: fix show_numa_map() vs exec() + do_set_mempolicy() racefs/ | +9 | 0 replies | |
| 3/4 | mempolicy: sanitize the usage of get_task_policy()mm/ | +14 | 0 replies | |
| 3/4 | mempolicy: kill do_set_mempolicy()->down_write(&mm->mmap_sem)mm/ | +1 | 0 replies | |
| 4/4 | mempolicy: remove the "task" arg of vma_policy_mof() and simplify itinclude/ kernel/ mm/ | +13 | 0 replies | |
| 4/4 | mempolicy: unexport get_vma_policy() and remove its "task" arginclude/ mm/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] mempolicy: get_task_policy() cleanups/preparations
Quoted 4 lines · Oleg Nesterov
With this change the only user of
proc_maps_private->taskis hold_task_mempolicy/release_task_mempolicy. I believe this code is buggy and should die, but this needs the changes inmm/mempolicy.c.
I belive that 9e7814404b77c3e8 "hold task->mempolicy while numa_maps scans" was wrong and it doesn't fix the problem.
I'll try to send the fix tomorrow, could you review the initial preparations? To me, these changes make sense as cleanups in any case, but I don't really understand this code and this was only compile tested.
Oleg.