diff options
| author | Thomas Gleixner <[email protected]> | 2021-09-28 14:10:49 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-09-29 00:30:36 +0000 |
| commit | f936bb42aeb94a069bec7c9e04100d199c372956 (patch) | |
| tree | f1468fba7231de108623a9cba04510c31020418d /net/unix/af_unix.c | |
| parent | net: mdio-ipq4019: Fix the error for an optional regs resource (diff) | |
| download | kernel-f936bb42aeb94a069bec7c9e04100d199c372956.tar.gz kernel-f936bb42aeb94a069bec7c9e04100d199c372956.zip | |
net: bridge: mcast: Associate the seqcount with its protecting lock.
The sequence count bridge_mcast_querier::seq is protected by
net_bridge::multicast_lock but seqcount_init() does not associate the
seqcount with the lock. This leads to a warning on PREEMPT_RT because
preemption is still enabled.
Let seqcount_init() associate the seqcount with lock that protects the
write section. Remove lockdep_assert_held_once() because lockdep already checks
whether the associated lock is held.
Fixes: 67b746f94ff39 ("net: bridge: mcast: make sure querier port/address updates are consistent")
Reported-by: Mike Galbraith <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Tested-by: Mike Galbraith <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
