Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2003 17:17:44 -0700 (PDT)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sys_pipe.c
Message-ID:  <200308110017.h7B0HiDk079385@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308110017.h7B0HiDk079385>