vm_machdep.c (cfe30d02adda7c3b5c76156ac52d50d8cab325d9) vm_machdep.c (05d1f5bce0130b3220e260ca133b58cfa10a22a8)
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * Copyright (c) 1989, 1990 William Jolitz
4 * Copyright (c) 1994 John Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer

--- 237 unchanged lines hidden (view full) ---

246 }
247 goto done;
248 }
249 }
250 while ((sf = TAILQ_FIRST(&sf_buf_freelist)) == NULL) {
251 if (flags & SFB_NOWAIT)
252 goto done;
253 sf_buf_alloc_want++;
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * Copyright (c) 1989, 1990 William Jolitz
4 * Copyright (c) 1994 John Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer

--- 237 unchanged lines hidden (view full) ---

246 }
247 goto done;
248 }
249 }
250 while ((sf = TAILQ_FIRST(&sf_buf_freelist)) == NULL) {
251 if (flags & SFB_NOWAIT)
252 goto done;
253 sf_buf_alloc_want++;
254 mbstat.sf_allocwait++;
254 SFSTAT_INC(sf_allocwait);
255 error = msleep(&sf_buf_freelist, &sf_buf_lock,
256 (flags & SFB_CATCH) ? PCATCH | PVM : PVM, "sfbufa", 0);
257 sf_buf_alloc_want--;
258
259
260 /*
261 * If we got a signal, don't risk going back to sleep.
262 */

--- 472 unchanged lines hidden ---
255 error = msleep(&sf_buf_freelist, &sf_buf_lock,
256 (flags & SFB_CATCH) ? PCATCH | PVM : PVM, "sfbufa", 0);
257 sf_buf_alloc_want--;
258
259
260 /*
261 * If we got a signal, don't risk going back to sleep.
262 */

--- 472 unchanged lines hidden ---