Date: Tue, 8 Jun 2010 17:54:28 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_bio.c Message-ID: <201006081754.o58Hsdw6025762@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2010-06-08 17:54:28 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_bio.c
Log:
SVN rev 208920 on 2010-06-08 17:54:28Z by kib
Reorganize the code in bdwrite() which handles move of dirtiness
from the buffer pages to buffer. Combine the code to set buffer
dirty range (previously in vfs_setdirty()) and to clean the pages
(vfs_clean_pages()) into new function vfs_clean_pages_dirty_buf(). Now
the vm object lock is acquired only once.
Drain the VPO_BUSY bit of the buffer pages before setting valid
and clean bits in vfs_clean_pages_dirty_buf() with new helper
vfs_drain_busy_pages(). pmap_clear_modify() asserts that page is not
busy.
In vfs_busy_pages(), move the wait for draining of VPO_BUSY before
the dirtyness handling, to follow the structure of
vfs_clean_pages_dirty_buf().
Reported and tested by: pho
Suggested and reviewed by: alc
MFC after: 2 weeks
Revision Changes Path
1.582 +65 -70 src/sys/kern/vfs_bio.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006081754.o58Hsdw6025762>
