The patch titled Subject: mm/vmstat: add note on safety of drain_zonestat has been added to the -mm tree. Its filename is mm-vmstat-add-note-on-safety-of-drain_zonestat.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Cody P Schafer <cody@xxxxxxxxxxxxxxxxxx> Subject: mm/vmstat: add note on safety of drain_zonestat Signed-off-by: Cody P Schafer <cody@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmstat.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN mm/vmstat.c~mm-vmstat-add-note-on-safety-of-drain_zonestat mm/vmstat.c --- a/mm/vmstat.c~mm-vmstat-add-note-on-safety-of-drain_zonestat +++ a/mm/vmstat.c @@ -493,6 +493,10 @@ void refresh_cpu_vm_stats(int cpu) atomic_long_add(global_diff[i], &vm_stat[i]); } +/* + * this is only called if !populated_zone(zone), which implies no other users of + * pset->vm_stat_diff[] exsist. + */ void drain_zonestat(struct zone *zone, struct per_cpu_pageset *pset) { int i; _ Patches currently in -mm which might be from cody@xxxxxxxxxxxxxxxxxx are linux-next.patch page_alloc-make-setup_nr_node_ids-usable-for-arch-init-code.patch x86-mm-numa-use-setup_nr_node_ids-instead-of-opencoding.patch powerpc-mm-numa-use-setup_nr_node_ids-instead-of-opencoding.patch powerpc-mm-numa-use-setup_nr_node_ids-instead-of-opencoding-fix.patch mm-vmstat-add-note-on-safety-of-drain_zonestat.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html