GC P_BUFEXHAUST leftovers, we've had a new mechanism to avoid buffer
cache lockups for over a year now. MFC after: 0 days
This commit is contained in:
parent
ecf20a5ab9
commit
8abd6168f2
@ -1880,7 +1880,6 @@ buf_daemon()
|
|||||||
/*
|
/*
|
||||||
* This process is allowed to take the buffer cache to the limit
|
* This process is allowed to take the buffer cache to the limit
|
||||||
*/
|
*/
|
||||||
curproc->p_flag |= P_BUFEXHAUST;
|
|
||||||
s = splbio();
|
s = splbio();
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -469,7 +469,7 @@ struct proc {
|
|||||||
#define P_KSES 0x08000 /* Process is using KSEs. */
|
#define P_KSES 0x08000 /* Process is using KSEs. */
|
||||||
|
|
||||||
/* Should be moved to machine-dependent areas. */
|
/* Should be moved to machine-dependent areas. */
|
||||||
#define P_BUFEXHAUST 0x100000 /* Dirty buffers flush is in progress. */
|
#define P_UNUSED100000 0x100000
|
||||||
#define P_COWINPROGRESS 0x400000 /* Snapshot copy-on-write in progress. */
|
#define P_COWINPROGRESS 0x400000 /* Snapshot copy-on-write in progress. */
|
||||||
|
|
||||||
#define P_JAILED 0x1000000 /* Process is in jail. */
|
#define P_JAILED 0x1000000 /* Process is in jail. */
|
||||||
|
@ -1376,9 +1376,6 @@ vm_pageout()
|
|||||||
if (vm_pageout_stats_free_max == 0)
|
if (vm_pageout_stats_free_max == 0)
|
||||||
vm_pageout_stats_free_max = 5;
|
vm_pageout_stats_free_max = 5;
|
||||||
|
|
||||||
PROC_LOCK(curthread->td_proc);
|
|
||||||
curthread->td_proc->p_flag |= P_BUFEXHAUST;
|
|
||||||
PROC_UNLOCK(curthread->td_proc);
|
|
||||||
swap_pager_swap_init();
|
swap_pager_swap_init();
|
||||||
pass = 0;
|
pass = 0;
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user