svn commit: r185147 - user/kmacy/HEAD_fast_multi_xmit/sys/kern
Kip Macy
kmacy at FreeBSD.org
Thu Nov 20 20:48:08 PST 2008
Author: kmacy
Date: Fri Nov 21 04:48:08 2008
New Revision: 185147
URL: http://svn.freebsd.org/changeset/base/185147
Log:
initialize br_lock
Modified:
user/kmacy/HEAD_fast_multi_xmit/sys/kern/subr_bufr.c
Modified: user/kmacy/HEAD_fast_multi_xmit/sys/kern/subr_bufr.c
==============================================================================
--- user/kmacy/HEAD_fast_multi_xmit/sys/kern/subr_bufr.c Fri Nov 21 04:47:11 2008 (r185146)
+++ user/kmacy/HEAD_fast_multi_xmit/sys/kern/subr_bufr.c Fri Nov 21 04:48:08 2008 (r185147)
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
struct buf_ring *
-buf_ring_alloc(int count, struct malloc_type *type, int flags)
+buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock)
{
struct buf_ring *br;
@@ -50,7 +50,9 @@ buf_ring_alloc(int count, struct malloc_
type, flags|M_ZERO);
if (br == NULL)
return (NULL);
-
+#ifdef DEBUG_BUFRING
+ br->br_lock = lock;
+#endif
br->br_prod_size = br->br_cons_size = count;
br->br_prod_mask = br->br_cons_mask = count-1;
br->br_prod_head = br->br_cons_head = 0;
More information about the svn-src-user
mailing list