In the vm_page_set_invalid() function, do not assert that the page is

not busy, since its only caller brelse() can legitimately call it on
busy page.  This happens for VOP_PUTPAGES() on filesystems that use
buffers and which VOP_WRITE() method marked the buffer containing page
as non-cacheable.

Reported and tested by:	pho
Reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2013-07-11 05:38:39 +00:00
parent 92e5367354
commit 3abeb8113d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253188

View File

@ -2631,8 +2631,6 @@ vm_page_set_invalid(vm_page_t m, int base, int size)
vm_page_bits_t bits;
VM_OBJECT_ASSERT_WLOCKED(m->object);
KASSERT((m->oflags & VPO_BUSY) == 0,
("vm_page_set_invalid: page %p is busy", m));
bits = vm_page_bits(base, size);
if (m->valid == VM_PAGE_BITS_ALL && bits != 0)
pmap_remove_all(m);