]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Eliminate two calls to vm_page_xunbusy() that are both unnecessary and
authorAlan Cox <alc@FreeBSD.org>
Sat, 13 Aug 2016 18:10:32 +0000 (18:10 +0000)
committerAlan Cox <alc@FreeBSD.org>
Sat, 13 Aug 2016 18:10:32 +0000 (18:10 +0000)
commitfc9bbf27949858affd0fc6b84d1ca4a16a6b0340
tree890f08c9a0ce4ad7505f7fa9cb0b36ed6c34e90b
parent57fb3b7a78e33e54d5ff2790e04f86800a84503b
Eliminate two calls to vm_page_xunbusy() that are both unnecessary and
incorrect from the error cases in exec_map_first_page().  They are
unnecessary because we automatically unbusy the page in vm_page_free()
when we remove it from the object.  The calls are incorrect because they
happen after the page is freed, so we might actually unbusy the page
after it has been reallocated to a different object.  (This error was
introduced in r292373.)

Reviewed by: kib
MFC after: 1 week
sys/kern/kern_exec.c