mbox series

[v2,0/3] Memory hotplug locking cleanup

Message ID 20210602091457.17772-1-osalvador@suse.de (mailing list archive)
Headers show
Series Memory hotplug locking cleanup | expand

Message

Oscar Salvador June 2, 2021, 9:14 a.m. UTC
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(-)