Giant-free polling [PATCH]

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Mar 11 06:15:06 PST 2005


On Fri, Mar 11, 2005 at 04:55:25PM +0300, dima wrote:
+> I thought about using list also, but considered it to bring
+> too much overhead to the code. The original idea of handling arrays
+> seems to be very elegant.

Overhead? Did you run any benchmarks to prove it?
I find list-version much more elegant that using an array.

I also don't like the idea of calling handler method with two locks
held (one sx and one mutex)...

There is still an unresolved problem (in your and our patch as well) of
using ifnet structure fields without synchronization, as we don't have
access tointerface's internal mutex, which protects those fields.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050311/a9929f4f/attachment.bin


More information about the freebsd-net mailing list