Re: [PATCH] [NETNS49] support for per/namespace routing cache cleanup

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

 



Daniel Lezcano wrote:
Oh, by the way, I forgot something important you spotted with the list protected by the mutex.

When looking at ipv6/fib_hash.c with Benjamin, we need to browse the network namespaces list for the garbage collecting, but we are in an interrupt handler, so I can not use rtnl_lock.
where exactly....

all interesting places are called under rtnl already...

Why is not possible to protect the list with a simple spinlock ? so we can call spin_lock_bh when we are in interrupt handler.

see my old patch with a locking rules :)

By the way, I have forgotten to mention, that the original patch works from 2004 for OpenVz :)

Regards,
	Den
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux