mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Commented out anti-paging code as it was found to be the cause of a
buffer deadlock.
This commit is contained in:
parent
4efda9261d
commit
91b1e28556
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3349
@ -16,7 +16,7 @@
|
||||
* 4. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: vfs_bio.c,v 1.11 1994/08/31 06:17:37 davidg Exp $
|
||||
* $Id: vfs_bio.c,v 1.12 1994/09/25 19:33:51 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -683,6 +683,7 @@ vm_hold_load_pages(vm_offset_t froma, vm_offset_t toa) {
|
||||
for(pg = from ; pg < to ; pg += PAGE_SIZE) {
|
||||
|
||||
tryagain:
|
||||
#if 0
|
||||
/*
|
||||
* don't allow buffer cache to cause VM paging
|
||||
*/
|
||||
@ -710,8 +711,7 @@ vm_hold_load_pages(vm_offset_t froma, vm_offset_t toa) {
|
||||
tsleep(&loadfreeing, PRIBIO, "biofree", 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
if (cnt.v_free_count <=
|
||||
cnt.v_free_reserved + (toa-froma) / PAGE_SIZE) {
|
||||
VM_WAIT;
|
||||
|
Loading…
Reference in New Issue
Block a user