diff options
| author | Hangbin Liu <[email protected]> | 2025-09-05 09:15:32 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-09-11 09:49:19 +0000 |
| commit | 393c841fe4333cdd856d0ca37b066d72746cfaa6 (patch) | |
| tree | 2ff9e8f42ff3c0a596961f1923f5c7a997a9a227 /fs/btrfs/dev-replace.c | |
| parent | hsr: use rtnl lock when iterating over ports (diff) | |
| download | kernel-393c841fe4333cdd856d0ca37b066d72746cfaa6.tar.gz kernel-393c841fe4333cdd856d0ca37b066d72746cfaa6.zip | |
hsr: use hsr_for_each_port_rtnl in hsr_port_get_hsr
hsr_port_get_hsr() iterates over ports using hsr_for_each_port(),
but many of its callers do not hold the required RCU lock.
Switch to hsr_for_each_port_rtnl(), since most callers already hold
the rtnl lock. After review, all callers are covered by either the rtnl
lock or the RCU lock, except hsr_dev_xmit(). Fix this by adding an
RCU read lock there.
Fixes: c5a759117210 ("net/hsr: Use list_head (and rcu) instead of array for slave devices.")
Signed-off-by: Hangbin Liu <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
