Date: Wed, 17 Apr 2002 16:25:31 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Maksim Yevmenkin <myevmenk@digisle.net> Cc: Roman Kurakin <rik@cronyx.ru>, freebsd-net@FreeBSD.ORG Subject: Re: 5.Current Netgraph, Mutex Message-ID: <Pine.BSF.4.21.0204171621470.98907-100000@InterJet.elischer.org> In-Reply-To: <3CBDA43E.87D2E163@digisle.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman, Having finally found the original mail, I concur. it looks like you have 'leaked' mutexes. (and the witness code accesses all mutexes even after the driver has unloaded... (*boom*)) I have not looked at the locks yet but you may be able to take advantage of netgraph's inherrant locking and queueing to simplify your usage of mutexes in some cases. (But I have to look at it more..) On Wed, 17 Apr 2002, Maksim Yevmenkin wrote: > Roman Kurakin wrote: > > > #if __FreeBSD_version >= 500000 > > mtx_init (&d->queue.ifq_mtx, "cp_queue", MTX_DEF); > > mtx_init (&d->hi_queue.ifq_mtx, "cp_queue_hi", MTX_DEF); > > #endif > > my guess would be that you forgot to call mtx_destroy() for > queue and hi_queue mutexes. > > thanks, > max > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0204171621470.98907-100000>