Skip to content

Commit

Permalink
net: netlink: Remove the dump_cb_mutex field from struct netlink_sock
Browse files Browse the repository at this point in the history
Commit 5fbf57a ("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>
  • Loading branch information
Christophe JAILLET authored and David S. Miller committed Aug 26, 2024
1 parent 7d3aed6 commit 18aaa82
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/netlink/af_netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ struct netlink_sock {
struct netlink_callback cb;
struct mutex nl_cb_mutex;

struct mutex *dump_cb_mutex;
void (*netlink_rcv)(struct sk_buff *skb);
int (*netlink_bind)(struct net *net, int group);
void (*netlink_unbind)(struct net *net, int group);
Expand Down

0 comments on commit 18aaa82

Please sign in to comment.