Date: Mon, 19 Apr 2010 00:18:14 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r206823 - head/sys/vm Message-ID: <201004190018.o3J0IEhA037375@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Mon Apr 19 00:18:14 2010 New Revision: 206823 URL: http://svn.freebsd.org/changeset/base/206823 Log: vm_thread_swapout() can safely dirty the page before rather than after acquiring the page queues lock. Modified: head/sys/vm/vm_glue.c Modified: head/sys/vm/vm_glue.c ============================================================================== --- head/sys/vm/vm_glue.c Sun Apr 18 22:51:20 2010 (r206822) +++ head/sys/vm/vm_glue.c Mon Apr 19 00:18:14 2010 (r206823) @@ -523,8 +523,8 @@ vm_thread_swapout(struct thread *td) m = vm_page_lookup(ksobj, i); if (m == NULL) panic("vm_thread_swapout: kstack already missing?"); - vm_page_lock_queues(); vm_page_dirty(m); + vm_page_lock_queues(); vm_page_unwire(m, 0); vm_page_unlock_queues(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004190018.o3J0IEhA037375>