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

Next file: linux-2.4.20/arch/m68k/mvme147/config.c
Previous file: linux-2.4.20/arch/m68k/mac/misc.c
Back to the patch index
Back to the overall index

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

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