Files
linux/drivers
San Mehat 6698346415 lowmemorykiller: Don't try to kill the same pid over and over
Under certain circumstances, a process can take awhile to
handle a sig-kill (especially if it's in a scheduler group with
a very low share ratio). When this occurs, lowmemkiller returns
to vmscan indicating the process memory has been freed - even
though the process is still waiting to die. Since the memory
hasn't actually freed, lowmemkiller is called again shortly after,
and picks the same process to die; regardless of the fact that
it has already been 'scheduled' to die and the memory has already
been reported to vmscan as having been freed.

  Solution is to check fatal_signal_pending() on the selected
task, and if it's already pending destruction return; indicating
to vmscan that no resources were freed on this pass.

Signed-off-by: San Mehat <san@google.com>
2011-06-14 09:09:30 -07:00
..
2011-05-26 17:12:32 -07:00
2011-06-11 15:06:48 -07:00
2011-06-14 09:09:14 -07:00
2011-06-06 14:14:56 +02:00
2011-05-30 11:14:15 +09:30
2011-06-14 09:08:45 -07:00