Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2004 12:48:26 -0800 (PST)
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_contig.c vm_page.c
Message-ID:  <200401082048.i08KmQ7t010755@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2004/01/08 12:48:26 PST

  FreeBSD src repository

  Modified files:
    sys/vm               vm_contig.c vm_page.c 
  Log:
   - Enable recursive acquisition of the mutex synchronizing access to the
     free pages queue.  This is presently needed by contigmalloc1().
   - Move a sanity check against attempted double allocation of two pages
     to the same vm object offset from vm_page_alloc() to vm_page_insert().
     This provides better protection because double allocation could occur
     through a direct call to vm_page_insert(), such as that by
     vm_page_rename().
   - Modify contigmalloc1() to hold the mutex synchronizing access to the
     free pages queue while it scans vm_page_array in search of free pages.
   - Correct a potential leak of pages by contigmalloc1() that I introduced
     in revision 1.20: We must convert all cache queue pages to free pages
     before we begin removing free pages from the free queue.  Otherwise,
     if we have to restart the scan because we are unable to acquire the
     vm object lock that is necessary to convert a cache queue page to a
     free page, we leak those free pages already removed from the free queue.
  
  Revision  Changes    Path
  1.27      +6 -2      src/sys/vm/vm_contig.c
  1.274     +7 -6      src/sys/vm/vm_page.c



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