diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-07-02 23:01:24 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-09 01:32:38 +0000 |
| commit | 2ceb71ce7d34e751f91bbca9da3513a2bc29089c (patch) | |
| tree | d55ddad900362dce1f58f9aaad202e4f29ffb59e /net/smc/smc_tracepoint.c | |
| parent | ipv6: mcast: Don't hold RTNL for IPV6_ADD_MEMBERSHIP and MCAST_JOIN_GROUP. (diff) | |
| download | kernel-2ceb71ce7d34e751f91bbca9da3513a2bc29089c.tar.gz kernel-2ceb71ce7d34e751f91bbca9da3513a2bc29089c.zip | |
ipv6: mcast: Don't hold RTNL for IPV6_DROP_MEMBERSHIP and MCAST_LEAVE_GROUP.
In __ipv6_sock_mc_drop(), per-socket mld data is protected by lock_sock(),
and only __dev_get_by_index() and __in6_dev_get() require RTNL.
Let's use dev_get_by_index() and in6_dev_get() and drop RTNL for
IPV6_ADD_MEMBERSHIP and MCAST_JOIN_GROUP.
Note that __ipv6_sock_mc_drop() is factorised to reuse in the next patch.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/smc/smc_tracepoint.c')
0 files changed, 0 insertions, 0 deletions
