From: Pravin B Shelar Date: Tue, 23 Apr 2013 07:48:30 +0000 (+0000) Subject: genl: Allow concurrent genl callbacks. X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=def3117493eafd9dfa1f809d861e0031b2cc8a07;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed