Re: [PATCH 2 of 4] hotplug-memory: adding non-section-aligned memoryis bad

From: Jeremy Fitzhardinge
Date: Fri Mar 28 2008 - 17:30:56 EST


KAMEZAWA Hiroyuki wrote:
For example, mem_notify() in online_pages() will be called several times against
a section.

It seems the only in-tree user of the notifier is mm/slub.c, and it only cares about MEM_GOING_ONLINE, GOING_OFFLINE, OFFLINE and CANCEL_ONLINE (not ONLINE or CANCEL_OFFLINE).

Also,

if (onlined_pages)
memory_notify(MEM_ONLINE, &arg);

doesn't seem correct, because arg.nr_pages still has the original nr_pages, and not the number of pages actually onlined (onlined_pages). Also arg.start_pfn isn't terribly meaningful if a discontiguous set of pages can be actually onlined.

J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/