mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
d1a97625be
commit
ad6c5bbede
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78521
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user