Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2004 08:11:59 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm vm_page.c
Message-ID:  <200410180811.i9I8Bx7T059269@repoman.freebsd.org>

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



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