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

David Miller davem at davemloft.net
Thu Apr 25 05:43:29 UTC 2013


From: Pravin B Shelar <pshelar at nicira.com>
Date: Tue, 23 Apr 2013 10:48:30 -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_lock held.
> New rw-sem is used to protect genl callback from genl family unregister.
> in case of parallel_ops genl-family read-lock is taken for callbacks and
> write lock is taken for register or unregistration for any family.
> In case of locked genl family semaphore and gel-mutex is locked for
> any openration.
> 
> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>

Applied.



More information about the dev mailing list