[PATCH] netns: Simplify the network namespace list locking rules.

2007-09-26 Thread Eric W. Biederman
Denis V. Lunev [EMAIL PROTECTED] noticed that the locking rules for the network namespace list are over complicated and broken. In particular the current register_netdev_notifier currently does not take any lock making the for_each_net iteration racy with network namespace creation and

Re: [PATCH] netns: Simplify the network namespace list locking rules.

2007-09-26 Thread Denis V. Lunev
Eric W. Biederman wrote: Denis V. Lunev [EMAIL PROTECTED] noticed that the locking rules for the network namespace list are over complicated and broken. In particular the current register_netdev_notifier currently does not take any lock making the for_each_net iteration racy with network

Re: [PATCH] netns: Simplify the network namespace list locking rules.

2007-09-26 Thread David Miller
From: [EMAIL PROTECTED] (Eric W. Biederman) Date: Wed, 26 Sep 2007 21:54:47 -0600 Denis V. Lunev [EMAIL PROTECTED] noticed that the locking rules for the network namespace list are over complicated and broken. In particular the current register_netdev_notifier currently does not take any