Addendum to r334233. In vm_fault_populate(), since the page lock is held,

we must use vm_page_xunbusy_maybelocked() rather than vm_page_xunbusy() to
unbusy the page.

Reviewed by:	kib
X-MFC with:	r334233
This commit is contained in:
Alan Cox 2018-05-28 16:23:39 +00:00
parent eef8d4a973
commit 6e1e759c56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334287

View File

@ -490,7 +490,7 @@ vm_fault_populate(struct faultstate *fs, vm_prot_t prot, int fault_type,
*m_hold = &m[i];
vm_page_hold(&m[i]);
}
vm_page_xunbusy(&m[i]);
vm_page_xunbusy_maybelocked(&m[i]);
}
if (m_mtx != NULL)
mtx_unlock(m_mtx);