Remove GIANT_REQUIRED from getpbuf(). Reviewed by: tegge

Reduce pbuf_mtx's scope in relpbuf().  Submitted by: tegge
This commit is contained in:
Alan Cox 2003-04-05 21:01:16 +00:00
parent 3f171d2283
commit 2ac8b16089
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113138

View File

@ -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) {