summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_mbuf.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2003-07-27 14:19:23 +0000
committerdwmalone <dwmalone@FreeBSD.org>2003-07-27 14:19:23 +0000
commit41c671f8e6e15727ceb276192cb5af39136159ac (patch)
tree7548f9fcda3c6250cff75443ac17f4af03254bbb /sys/kern/subr_mbuf.c
parent17f592156d8aee1547c88c8e48b24d5cd3e35a4e (diff)
downloadFreeBSD-src-41c671f8e6e15727ceb276192cb5af39136159ac.zip
FreeBSD-src-41c671f8e6e15727ceb276192cb5af39136159ac.tar.gz
Now that we can call kmem_malloc without Giant it should be safe
to do mbuf allocation without Giant, so remove the GIANT_REQUIRED from mb_alloc in the M_TRYWAIT case.
Diffstat (limited to 'sys/kern/subr_mbuf.c')
-rw-r--r--sys/kern/subr_mbuf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c
index 8f24146..e7a4ff5 100644
--- a/sys/kern/subr_mbuf.c
+++ b/sys/kern/subr_mbuf.c
@@ -630,8 +630,6 @@ mb_alloc(struct mb_lstmngr *mb_list, int how, short type, short persist,
how = M_TRYWAIT;
}
}
- if ((flags & M_DONTWAIT) == 0)
- GIANT_REQUIRED;
#endif
m = NULL;
OpenPOWER on IntegriCloud