patch-2.4.20 linux-2.4.20/arch/s390/mm/fault.c

Next file: linux-2.4.20/arch/s390x/config.in
Previous file: linux-2.4.20/arch/s390/kernel/traps.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/arch/s390/mm/fault.c linux-2.4.20/arch/s390/mm/fault.c
@@ -291,13 +291,11 @@
  * us unable to handle the page fault gracefully.
 */
 out_of_memory:
-	up_read(&mm->mmap_sem);
 	if (tsk->pid == 1) {
-		tsk->policy |= SCHED_YIELD;
-		schedule();
-		down_read(&mm->mmap_sem);
+		yield();
 		goto survive;
 	}
+	up_read(&mm->mmap_sem);
 	printk("VM: killing process %s\n", tsk->comm);
 	if (regs->psw.mask & PSW_PROBLEM_STATE)
 		do_exit(SIGKILL);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)