cvs commit: src/sys/kern sys_pipe.c
Alan Cox
alc at FreeBSD.org
Sun Aug 10 21:23:36 PDT 2003
alc 2003/08/10 17:17:44 PDT
FreeBSD src repository
Modified files:
sys/kern sys_pipe.c
Log:
Use vm_page_hold() instead of vm_page_wire(). Otherwise, a multithreaded
application could cause a wired page to be freed. In general,
vm_page_hold() should be preferred for ephemeral kernel mappings of pages
borrowed from a user-level address space. (vm_page_wire() should really be
reserved for indefinite duration pinning by the "owner" of the page.)
Discussed with: silby
Submitted by: tegge
Revision Changes Path
1.144 +3 -3 src/sys/kern/sys_pipe.c
More information about the cvs-src
mailing list