Re: [PATCH/RFC] synchronize_rcu(): high latency on idle system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 12 January 2008 18:51:35 Benjamin LaHaise wrote:
> On Sat, Jan 12, 2008 at 03:37:59AM +0100, Andi Kleen wrote:
> > > And yes, the 
> > > network stack shouldn't call synchronize_rcu() quite so much, but fixing that 
> > > is a little more involved.
> > 
> > ... but the correct solution.
> 
> There has to be at least 1 synchronize_rcu() or equivalent in the 
> unregister_netdev() path.  I suspect the easiest way to fix it might be to 
> use call_rcu() to actually free the network device, as anything else will 
> limit performance of single threaded teardown (ie, when an l2tp daemon 
> gets terminated via kill -9).  This means an API change that exposes 
> rcu for unregister_netdev().

The call_rcu() could be in free_netdev() couldn't it?

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux