diff options
author | Li Nan <linan122@huawei.com> | 2023-07-01 11:05:29 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-07-27 10:13:30 +0300 |
commit | 673643490b9a0eb3b25633abe604f62b8f63dba1 (patch) | |
tree | cb2f1857aacb43328b738fe6598eda3609d8e360 /drivers/md/md-bitmap.c | |
parent | b99f8fd2d91eb734f13098aa1cf337edaca454b7 (diff) | |
download | linux-673643490b9a0eb3b25633abe604f62b8f63dba1.tar.xz |
md/raid10: use dereference_rdev_and_rrdev() to get devices
Commit 2ae6aaf76912 ("md/raid10: fix io loss while replacement replace
rdev") reads replacement first to prevent io loss. However, there are same
issue in wait_blocked_dev() and raid10_handle_discard(), too. Fix it by
using dereference_rdev_and_rrdev() to get devices.
Fixes: d30588b2731f ("md/raid10: improve raid10 discard request")
Fixes: f2e7e269a752 ("md/raid10: pull the code that wait for blocked dev into one function")
Signed-off-by: Li Nan <linan122@huawei.com>
Link: https://lore.kernel.org/r/20230701080529.2684932-4-linan666@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/md-bitmap.c')
0 files changed, 0 insertions, 0 deletions