On Thu, Aug 24, 2006 at 05:12:44AM +0400, Oleg Bulyzhin wrote: > On Thu, Aug 24, 2006 at 10:07:46AM +0900, Pyun YongHyeon wrote: > > > > I can't remember what caused this. Need more coffee. :-( > > If my memory serve me right it's related with ioctls. > > I guess you can easily experiment with removing MTX_RECURSE flag > > in the driver. > > I'll try tomorrow (oh, today), have to sleep a bit. :) I've used bge(4) today with WITNESS enabled. Yes, i've got panic about 'recursion on non-recursive mutex' when i tried to issue 'ifconfig bge0 up' command. Though it was easy to fix it. (look at if_bge.c rev. 1.140). bge(4) is somewhat special cause it can handle TBI cards. (it is using bge_ifmedia_upd() inside bge_init_locked, thus i've added bge_ifmedia_upd_locked() in order to avoid mutex recursion). vge(4) (which is copper only, i.e. pure miibus(4) driver) is using mii_mediachg() inside vge_init(), so ifmedia callbacks can be locked 'as is'. Am i mistaken somewhere? -- Oleg.Received on Thu Aug 24 2006 - 17:38:43 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:59 UTC