Clear pointers to indicate that the respective locks are released.
This fixes a problem in r344231: vm_pageout_launder() may scan two queues when swap is disabled. Reported by: pho MFC with: r344231
This commit is contained in:
parent
0514659c04
commit
00ee058700
@ -893,10 +893,14 @@ vm_pageout_launder(struct vm_domain *vmd, int launder, bool in_shortfall)
|
||||
object = NULL;
|
||||
}
|
||||
}
|
||||
if (mtx != NULL)
|
||||
if (mtx != NULL) {
|
||||
mtx_unlock(mtx);
|
||||
if (object != NULL)
|
||||
mtx = NULL;
|
||||
}
|
||||
if (object != NULL) {
|
||||
VM_OBJECT_WUNLOCK(object);
|
||||
object = NULL;
|
||||
}
|
||||
vm_pagequeue_lock(pq);
|
||||
vm_pageout_end_scan(&ss);
|
||||
vm_pagequeue_unlock(pq);
|
||||
|
Loading…
Reference in New Issue
Block a user