Date: Mon, 20 Dec 2010 22:49:31 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/cxgb/ulp/tom cxgb_vm.c src/sys/kern sys_process.c src/sys/vm vm_extern.h vm_fault.c vm_map.h Message-ID: <201012202249.oBKMnx35074870@repoman.freebsd.org>
index | next in thread | raw e-mail
alc 2010-12-20 22:49:31 UTC
FreeBSD src repository
Modified files:
sys/dev/cxgb/ulp/tom cxgb_vm.c
sys/kern sys_process.c
sys/vm vm_extern.h vm_fault.c vm_map.h
Log:
SVN rev 216604 on 2010-12-20 22:49:31Z by alc
Introduce vm_fault_hold() and use it to (1) eliminate a long-standing race
condition in proc_rwmem() and to (2) simplify the implementation of the
cxgb driver's vm_fault_hold_user_pages(). Specifically, in proc_rwmem()
the requested read or write could fail because the targeted page could be
reclaimed between the calls to vm_fault() and vm_page_hold().
In collaboration with: kib@
MFC after: 6 weeks
Revision Changes Path
1.8 +4 -13 src/sys/dev/cxgb/ulp/tom/cxgb_vm.c
1.172 +17 -63 src/sys/kern/sys_process.c
1.96 +2 -0 src/sys/vm/vm_extern.h
1.284 +18 -5 src/sys/vm/vm_fault.c
1.140 +1 -0 src/sys/vm/vm_map.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012202249.oBKMnx35074870>
