cvs commit: src/sys/vm

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Sep 17 03:02:53 PDT 2004


dillon      2004/09/17 03:02:12 PDT

DragonFly src repository

  Modified files:
    sys/vm               vm_object.c vm_page.c 
  Log:
  Fix a number of races.  First, retain PG_BUSY through a vm_page_remove(),
  allowing it to be held atomically through a vm_page_rename() and
  through most of a vm_page_free_toq() call.  Before vm_page_remove() unbusy'd
  the page, leading to possible races and definite future issues.
  
  Use a critical section instead of splvm() for critical VM page operations,
  to protect against IPIs.
  
  In-discussion-with: David Rhodus
  
  Revision  Changes    Path
  1.19      +1 -0      src/sys/vm/vm_object.c
  1.26      +52 -47    src/sys/vm/vm_page.c


http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_object.c.diff?r1=1.18&r2=1.19&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_page.c.diff?r1=1.25&r2=1.26&f=u





More information about the Commits mailing list