mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Remove GIANT_REQUIRED from getpbuf(). Reviewed by: tegge
Reduce pbuf_mtx's scope in relpbuf(). Submitted by: tegge
This commit is contained in:
parent
3f171d2283
commit
2ac8b16089
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113138
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user