[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1ILft1-0001Db-00@gondolin.me.apana.org.au>
Date: Thu, 16 Aug 2007 21:59:43 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: dada1@...mosbay.com (Eric Dumazet)
Cc: herbert@...dor.apana.org.au, netdev@...r.kernel.org
Subject: Re: [RFC] net/core/dst.c : Should'nt dst_run_gc() be more scalable and friendly ?
Eric Dumazet <dada1@...mosbay.com> 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~} <herbert@...dor.apana.org.au>
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists