[ofa-general] Re: [PATCH 2/3][NET_BATCH] net core use batching

Andi Kleen andi at firstfloor.org
Fri Oct 12 11:29:49 PDT 2007


> Use RCU? or write a generic version and get it reviewed.  You really
> want someone with knowledge of all the possible barrier impacts to
> review it.

I guess he was thinking of using cmpxchg; but we don't support this
in portable code.

RCU is not really suitable for this because it assume
writing is relatively rare which is definitely not the case for a qdisc.
Also general list management with RCU is quite expensive anyways --
it would require a full copy (that is the 'C' in RCU which Linux
generally doesn't use at all) 

-Andi



More information about the general mailing list