Eric Dumazet <[EMAIL PROTECTED]> wrote: > > Yes, I already did this (with the current softirq based timer model), > but how can dst_dev_event() do its work, since the GC is using > a private list. (In my patch, time to GC process XXX.000 entries is about XX > seconds.) > > We would have to change dst_dev_event() to : > - Signal to GC it has to stop as soon as possible. > - Wait for GC be stoped (busy wait I suspect we cannot sleep in > dst_dev_event() ? )
You can sleep in dst_dev_event so just use a mutex to separate it from the GC. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html