[PATCH] out_of_memory() locking fix

I seem to have lost this read_unlock().

While we're there, let's turn that interruptible sleep unto uninterruptible,
so we don't get a busywait if signal_pending(). (Again. We seem to have a
habit of doing this).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Andrew Morton and committed by Linus Torvalds 140ffcec b1e2d907

+2 -1
+2 -1
mm/oom_kill.c
··· 355 355 } 356 356 357 357 out: 358 + read_unlock(&tasklist_lock); 358 359 cpuset_unlock(); 359 360 if (mm) 360 361 mmput(mm); ··· 365 364 * retry to allocate memory unless "p" is current 366 365 */ 367 366 if (!test_thread_flag(TIF_MEMDIE)) 368 - schedule_timeout_interruptible(1); 367 + schedule_timeout_uninterruptible(1); 369 368 }