Don't lock around swap_pager_swap_init() that is only called once during

the pagedaemon's startup code since it calls malloc which results in lock
order reversals.
This commit is contained in:
John Baldwin 2001-06-20 23:34:06 +00:00
parent d1a97625be
commit ad6c5bbede
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78521

View file

@ -1410,6 +1410,7 @@ vm_pageout()
*/
if (vm_pageout_stats_free_max == 0)
vm_pageout_stats_free_max = 5;
mtx_unlock(&vm_mtx);
PROC_LOCK(curproc);
curproc->p_flag |= P_BUFEXHAUST;
@ -1419,6 +1420,7 @@ vm_pageout()
/*
* The pageout daemon is never done, so loop forever.
*/
mtx_lock(&vm_mtx);
while (TRUE) {
int error;
int s = splvm();