Re: [ovs-dev] [PATCH net-next v2 1/2] genl: Allow concurrent genl callbacks.

2013-04-22 Thread Pravin Shelar
On Mon, Apr 22, 2013 at 3:55 PM, David Miller wrote: > From: Pravin Shelar > Date: Mon, 22 Apr 2013 13:41:41 -0700 > >> Therefore scatchpad in SKB is protected and parallel netlink dump operations >> can go only on different netlink sockets. > > What about configuration changes running in paralle

Re: [ovs-dev] [PATCH net-next v2 1/2] genl: Allow concurrent genl callbacks.

2013-04-22 Thread David Miller
From: Pravin Shelar Date: Mon, 22 Apr 2013 13:41:41 -0700 > Therefore scatchpad in SKB is protected and parallel netlink dump operations > can go only on different netlink sockets. What about configuration changes running in parallel with the dump? You must synchronize with those too, otherwise

Re: [ovs-dev] [PATCH net-next v2 1/2] genl: Allow concurrent genl callbacks.

2013-04-22 Thread Pravin Shelar
On Mon, Apr 22, 2013 at 1:18 PM, David Miller wrote: > From: Pravin B Shelar > Date: Thu, 18 Apr 2013 14:30:46 -0700 > >> All genl callbacks are serialized by genl-mutex. This can become >> bottleneck in multi threaded case. >> Following patch adds an parameter to genl_family so that a >> particu

Re: [ovs-dev] [PATCH net-next v2 1/2] genl: Allow concurrent genl callbacks.

2013-04-22 Thread David Miller
From: Pravin B Shelar Date: Thu, 18 Apr 2013 14:30:46 -0700 > All genl callbacks are serialized by genl-mutex. This can become > bottleneck in multi threaded case. > Following patch adds an parameter to genl_family so that a > particular family can get concurrent netlink callback without > genl_l

[ovs-dev] [PATCH net-next v2 1/2] genl: Allow concurrent genl callbacks.

2013-04-18 Thread Pravin B Shelar
All genl callbacks are serialized by genl-mutex. This can become bottleneck in multi threaded case. Following patch adds an parameter to genl_family so that a particular family can get concurrent netlink callback without genl_lock held. New rw-sem is used to protect genl callback from genl family u