summaryrefslogtreecommitdiff
path: root/include/net/dn.h
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2013-04-23 07:48:30 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-25 01:43:15 -0400
commitdef3117493eafd9dfa1f809d861e0031b2cc8a07 (patch)
tree93edfbb60f9d57d37d5643062cf3d41befc18579 /include/net/dn.h
parent133b94245c54bb2d8832bfb15975b931bc00d914 (diff)
genl: Allow concurrent genl callbacks.
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@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dn.h')
0 files changed, 0 insertions, 0 deletions