Skip to content

Memory hotplug locking cleanup

Oscar Salvador linux-mm lkml oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 14 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm,page_alloc: Use {get,put}_online_mems() to get stable zone's valuesmm/page_alloc.c+6 -812 replies
2/3mm,memory_hotplug: Drop unneeded lockinginclude/linux/memory_hotplug.h include/linux/mmzone.h mm/memory_hotplug.c +1 more+6 -691 reply
3/3mm,memory_hotplug: Remove unneeded declarationsinclude/linux/memory_hotplug.h+0 -31 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandMichal Hocko
1/3
2/3A-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Memory hotplug locking cleanup

Hi all,

I decided to go one step further and completely rip out zone's span_seqlock and all related functions, since we should be ok by using {get,put}_online_mems() on the reader side given that memory-hotplug is the only user fiddling with those values.

Patch#1 and patch#2 could probably be squashed but I decided to keep them separated so the intention becomes more clear.
Patch#3 only removes declarations that seem never be used.

Given that this is a much bigger surgery, I decided to drop any Acked-by/ Reviewed-by.

Oscar Salvador (3):
mm,page_alloc: Use {get,put}_online_mems() to get stable zone's values mm,memory_hotplug: Drop unneeded locking mm,memory_hotplug: Remove unneeded declarations

 include/linux/memory_hotplug.h | 38 --------------------------------------
 include/linux/mmzone.h         | 23 +++++------------------
 mm/memory_hotplug.c            | 16 +---------------
 mm/page_alloc.c                | 15 ++++++---------
 4 files changed, 12 insertions(+), 80 deletions(-)
Signature · 1 line
2.16.3