From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Denis V. Lunev" Subject: netns refcounting Date: Fri, 16 Nov 2007 17:04:08 +0300 Message-ID: <473DA358.9040705@sw.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" , Daniel Lezcano , Pavel Emelianov , Linux Containers , devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org List-Id: containers.vger.kernel.org Hello, All! During port of Eric's patches I have noticed an interesting thing. The patch "net: Teach the ipv4 route cache to handle multiple network namespaces" call hold_net for each IPv4 DST cache entry. Though it is not possible to stop a namespace without stopping all the devices inside. Additionally, the device can't be unregistered if there are dst entries to it. These entries are moved to a namespace loopback and the namespace will block until these entries will gone from a loopback. So, I do not see a necessity to have an extra atomic on this hot path, i.e. hold_net can re moved away for this. Are there any holes? Regards, Den