On Thu 15-11-12 17:45:18, KAMEZAWA Hiroyuki wrote: > (2012/11/14 18:15), David Rientjes wrote: [...] > >@@ -708,15 +671,17 @@ out: > > > > /* > > * The pagefault handler calls here because it is out of memory, so kill a > >- * memory-hogging task. If a populated zone has ZONE_OOM_LOCKED set, a parallel > >- * oom killing is already in progress so do nothing. If a task is found with > >- * TIF_MEMDIE set, it has been killed so do nothing and allow it to exit. > >+ * memory-hogging task. If any populated zone has ZONE_OOM_LOCKED set, a > >+ * parallel oom killing is already in progress so do nothing. > > */ > > void pagefault_out_of_memory(void) > > { > >- if (try_set_system_oom()) { > >+ struct zonelist *zonelist = node_zonelist(first_online_node, > >+ GFP_KERNEL); > > > why GFP_KERNEL ? not GFP_HIGHUSER_MOVABLE ? I was wondering about the same but gfp_zonelist cares only about __GFP_THISNODE so GFP_HIGHUSER_MOVABLE doesn't do any difference. -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>