[PATCH 00 of 13] oom deadlock fixes # try 2

Andrea Arcangeli
2008-01-08T07:50:31Z

This introduces the memdie_jiffies and MEMDIE_DELAY plus some minor
improvement that probably isn't really necessary (but I found tasks looping in
fork() allocating pagetables with GFP_REPEAT and lots of tasks in
congestion_wait so I thought to improve those two bits too). I can still
reproduce one deadlock in a certain condition with this patchset while no
deadlock was happening with the previous one before memdie_jiffies for
whatever reason. I was trying to fix that last deadlock before submission but
because of the talks on linux-mm on what I already got implemented and working
fine, I'll submit this right now (the new deadlock is likely unrelated to
these changes). I'm wondering if perhaps it's related to having reintroduced
the PF_EXITING check but in theory it shouldn't because the PF_EXITING check
should go off after 60sec when we start skipping over the TIF_MEMDIE tasks.

I written the last two patches after checking stack traces while debugging the
new deadlock.