Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: netlink: Remove the dump_cb_mutex field from struct netlink_sock

Commit 5fbf57a937f4 ("net: netlink: remove the cb_mutex "injection" from
netlink core") has removed the usage of the 'dump_cb_mutex' field from the
struct netlink_sock.

Remove the field itself now. It saves a few bytes in the structure.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Christophe JAILLET and committed by
David S. Miller
18aaa82b 7d3aed65

-1
-1
net/netlink/af_netlink.h
··· 41 41 struct netlink_callback cb; 42 42 struct mutex nl_cb_mutex; 43 43 44 - struct mutex *dump_cb_mutex; 45 44 void (*netlink_rcv)(struct sk_buff *skb); 46 45 int (*netlink_bind)(struct net *net, int group); 47 46 void (*netlink_unbind)(struct net *net, int group);