From: Johannes Berg Date: Mon, 22 Dec 2014 17:56:37 +0000 (+0100) Subject: netlink: update listeners directly when removing socket X-Git-Tag: fixes-v4.0-rc1~357^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10dcb3b94010e3ac3951f68789400b1665effb1;p=pandora-kernel.git netlink: update listeners directly when removing socket The code is now confusing to read - first in one function down (netlink_remove) any group subscriptions are implicitly removed by calling __sk_del_bind_node(), but the subscriber database is only updated far later by calling netlink_update_listeners(). Move the latter call to just after removal from the list so it is easier to follow the code. This also enables moving the locking inside the kernel-socket conditional, which improves the normal socket destruction path. Signed-off-by: Johannes Berg Signed-off-by: David S. Miller --- Reading git-diff-tree failed