An exclusive lock on the vnode is required when running vm_object_page_clean(),
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 31 Oct 2005 21:48:53 +0000 (21:48 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 31 Oct 2005 21:48:53 +0000 (21:48 +0000)
commit03a964e9dd699a5983a208b03109a42f76c2e7a6
treef4f6119d40356aa7d692d0c67b24d2aa219985a5
parent21a69bda76bfe3ef53e75b5f5904c9d785de2a97
An exclusive lock on the vnode is required when running vm_object_page_clean(),
otherwise a balloc may occur without the vnode/inode held locked.

There is a possibility that this bug was responsible for some filesystem
corrupted.

Reported-by: numerous people after a sanity assertion was committed to the
     ffs_balloc code.
sys/kern/vfs_subr.c