On Wed, Nov 19, 2014 at 2:38 PM, Masao Uebayashi <uebay...@gmail.com> wrote: > On Wed, Nov 19, 2014 at 11:24 AM, Ryota Ozaki <ozak...@netbsd.org> wrote: >> Weird :-/ > > I don't think so. For fast paths to access data really fast, slow > paths take a little way around (pre-allocation, etc). This is a fair > trade-off. If you can achieve such a goal (e.g. lockless access of > list) without restructuring, that's really weird. :)
I just felt so, I don't reject the code :) > > In this case, another approach is to allocate callout per-interface? > Should be considered and compared with alternatives. Sounds good for me. Actually FreeBSD seems to have a callout for each interface. Even more they killed the common if_watchdog facility and each driver has its own. Anyway here is a patch: http://www.netbsd.org/~ozaki-r/watchdog-callout-per-if.diff (it's on top of -current HEAD). Thanks, ozaki-r