Does Netgraph in FBSD 5.x SMP requires GIANT lock?

Vincent Jardin vjardin at wanadoo.fr
Thu Jun 5 23:51:05 PDT 2003


>
> it should not require Giant.
> However there are some locking 'holes' that come when locked resources
> are accessed by external code that is executed from other contexts..
> e.g. many drivers do not know about the locks in their netgraph half,
> and just 'do' what they want. Also there are instances of callout
> (timeout) code doing things to a node without getting teh node's lock.
>

What's about ng_l2tp ?
  The BSD's callout functions are used instead of the Netgraph's 
ng_[un]timeout functions. 

Vincent


More information about the freebsd-net mailing list