cvs commit: src/sys/vm vm_page.c

Alan Cox alc at FreeBSD.org
Mon Oct 18 01:11:59 PDT 2004


alc         2004-10-18 08:11:59 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_page.c 
  Log:
  Correct two errors in PG_BUSY management by vm_page_cowfault().  Both
  errors are in rarely executed paths.
  1. Each time the retry_alloc path is taken, the PG_BUSY must be set again.
     Otherwise vm_page_remove() panics.
  2. There is no need to set PG_BUSY on the newly allocated page before
     freeing it.  The page already has PG_BUSY set by vm_page_alloc().
     Setting it again could cause an assertion failure.
  
  MFC after: 2 weeks
  
  Revision  Changes    Path
  1.293     +1 -2      src/sys/vm/vm_page.c


More information about the cvs-src mailing list