diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-11-25 11:16:04 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-11-28 02:49:05 +0300 |
commit | 7ecab28c3b2c26c1a51154d997433e8432eb49ba (patch) | |
tree | 188da79cbd2529f2ca80abd84c5c5dfdc13d1fb2 /net/lapb/lapb_timer.c | |
parent | ad8606702f268903b26795e6b93605646fd1a6a8 (diff) | |
download | linux-7ecab28c3b2c26c1a51154d997433e8432eb49ba.tar.xz |
md/md-multipath: remove rcu protection to access rdev from conf
Because it's safe to accees rdev from conf:
- If any spinlock is held, because synchronize_rcu() from
md_kick_rdev_from_array() will prevent 'rdev' to be freed until
spinlock is released;
- If there is normal IO inflight, because mddev_suspend() will prevent
rdev to be added or removed from array;
And these will cover all the scenarios in md-multipath.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231125081604.3939938-6-yukuai1@huaweicloud.com
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions