From: Pravin B Shelar Date: Thu, 15 Aug 2013 22:31:06 +0000 (-0700) Subject: netlink: Eliminate kmalloc in netlink dump operation. X-Git-Tag: v3.12-rc1~132^2~283 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16b304f3404f8e0243d5ee2b70b68767b7b59b2b;p=pandora-kernel.git netlink: Eliminate kmalloc in netlink dump operation. Following patch stores struct netlink_callback in netlink_sock to avoid allocating and freeing it on every netlink dump msg. Only one dump operation is allowed for a given socket at a time therefore we can safely convert cb pointer to cb struct inside netlink_sock. Signed-off-by: Pravin B Shelar Signed-off-by: David S. Miller --- Reading git-diff-tree failed