On 03/14, David Rientjes wrote: > > On Mon, 14 Mar 2011, Linus Torvalds wrote: > > > The combination of testing PF_EXITING and p->mm just doesn't seem to > > make any sense. > > > > Right, it doesn't (and I recently removed testing the combination from > select_bad_process() in -mm). The check for PF_EXITING in the oom killer > is purely to avoid needlessly killing tasks when something is already > exiting Maybe 0/3 wasn't clear enough. This patches does not try to fix things, it only tries to close the hole in 2.6.38. But it was already released today. > and will (hopefully) be freeing its memory soon. This is not clear to me. When I did this change I looked at 81236810226f71bd9ff77321c8e8276dae7efc61 and the changelog says: __oom_kill_task() is called to elevate the task's timeslice and give it access to memory reserves so that it may quickly exit. This privilege is unnecessary, however, if the task has already detached its mm. Now you are saing this is pointless. OK. I already said I do not understand this special case. Perhaps I'll ask the questions later. > If an eligible > thread is found to be PF_EXITING, The problem is, we can't trust per-thread PF_EXITING checks. But I guess we will discuss this more anyway. Oleg. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>