Searched hist:122110 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/netgraph/
H A Dng_base.cdiff 122110 Wed Nov 05 08:32:21 MST 2003 harti Replace the lock-less algorithm for the free item list with a more
conservative lock. The problem with the lock-less algorithm is that
it suffers from the ABA problem. Running an application with funnels
a couple of 100kpkts/s through the netgraph system on a dual CPU system
with MPSAFE drivers will panic almost immediatly with the old algorithm.

It may be possible to eliminate the contention between threads that insert
free items into the list and those that get free items by using the
Michael/Scott queue algorithm that has two locks.

Completed in 204 milliseconds