Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jeff Smith <jeffs@netbsd.org>
List: source-changes
Date: 10/10/2000 23:39:42
Module Name: syssrc
Committed By: jeffs
Date: Tue Oct 10 20:39:42 UTC 2000
Modified Files:
syssrc/sys/arch/mips/mips: pmap.c
Log Message:
Fix race between pmap_enter() and pagedaemon. If we are low on memory and
pmap_enter() cannot allocate the segmap return failure if PMAP_CANFAIL
instead of sleeping. Otherwise panic. Both alpha and i386 do this. Do
not pmap_enter_pv() until after this is done so the data structures are
not partially allocated. This should prevent pmap_page_protect() from
getting stuck when called from pagedaemon.
To generate a diff of this commit:
cvs rdiff -r1.108 -r1.109 syssrc/sys/arch/mips/mips/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.