diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-04-05 21:01:16 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-04-05 21:01:16 +0000 |
| commit | 2ac8b1608936d008605baed356c150d86e9470f8 (patch) | |
| tree | 295b9fbc03083d0c48dc8a823a57426d9604c17b | |
| parent | 3f171d22835b3aadb52d5efdedfa861d60098375 (diff) | |
Notes
| -rw-r--r-- | sys/vm/vm_pager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 342c98a20873..46bdd411bee9 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -371,7 +371,6 @@ getpbuf(pfreecnt) struct buf *bp; s = splvm(); - GIANT_REQUIRED; mtx_lock(&pbuf_mtx); for (;;) { @@ -445,7 +444,6 @@ relpbuf(bp, pfreecnt) int s; s = splvm(); - mtx_lock(&pbuf_mtx); if (bp->b_rcred != NOCRED) { crfree(bp->b_rcred); @@ -461,6 +459,7 @@ relpbuf(bp, pfreecnt) BUF_UNLOCK(bp); + mtx_lock(&pbuf_mtx); TAILQ_INSERT_HEAD(&bswlist, bp, b_freelist); if (bswneeded) { |
