diff options
author | dillon <dillon@FreeBSD.org> | 2002-01-31 18:39:44 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-01-31 18:39:44 +0000 |
commit | 8abd6168f28967f585737358ce47fcbafc9361f0 (patch) | |
tree | efdca1b21fe225ea759cde06802cc36879060519 /sys | |
parent | ecf20a5ab928888fff6395eda109df1cf70cfd0b (diff) | |
download | FreeBSD-src-8abd6168f28967f585737358ce47fcbafc9361f0.zip FreeBSD-src-8abd6168f28967f585737358ce47fcbafc9361f0.tar.gz |
GC P_BUFEXHAUST leftovers, we've had a new mechanism to avoid buffer
cache lockups for over a year now.
MFC after: 0 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_bio.c | 1 | ||||
-rw-r--r-- | sys/sys/proc.h | 2 | ||||
-rw-r--r-- | sys/vm/vm_pageout.c | 3 |
3 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 29646d9..1ca27ab 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1880,7 +1880,6 @@ buf_daemon() /* * This process is allowed to take the buffer cache to the limit */ - curproc->p_flag |= P_BUFEXHAUST; s = splbio(); for (;;) { diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 46f01ee..deddf48 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -469,7 +469,7 @@ struct proc { #define P_KSES 0x08000 /* Process is using KSEs. */ /* 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_JAILED 0x1000000 /* Process is in jail. */ diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 47ce9e8..57f22b2 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1376,9 +1376,6 @@ vm_pageout() if (vm_pageout_stats_free_max == 0) 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(); pass = 0; /* |