diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-01-14 06:57:03 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-01-14 06:57:03 +0000 |
| commit | b0ef8c5fe43e60daa677c3464fa994ffd5043ba1 (patch) | |
| tree | 24db1344150e130dd55fba25b85388b5264f1cb1 /sys/kern/vfs_bio.c | |
| parent | ab099bd30996505878b508338a60c0641f048024 (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_bio.c')
| -rw-r--r-- | sys/kern/vfs_bio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index a4e5b6e77c09..3293ab433c62 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -2757,7 +2757,8 @@ allocbuf(struct buf *bp, int size) VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); if (m == NULL) { VM_WAIT; - vm_pageout_deficit += desiredpages - bp->b_npages; + atomic_add_int(&vm_pageout_deficit, + desiredpages - bp->b_npages); } else { vm_page_lock_queues(); vm_page_wakeup(m); @@ -3488,7 +3489,8 @@ tryagain: VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); vm_object_unlock(kernel_object); if (!p) { - vm_pageout_deficit += (to - from) >> PAGE_SHIFT; + atomic_add_int(&vm_pageout_deficit, + (to - from) >> PAGE_SHIFT); VM_WAIT; goto tryagain; } |
