Commit 94ca5eed authored by Li Nan's avatar Li Nan Committed by Greg Kroah-Hartman
Browse files

md/raid10: factor out dereference_rdev_and_rrdev()



[ Upstream commit b99f8fd2 ]

Factor out a helper to get 'rdev' and 'replacement' from config->mirrors.
Just to make code cleaner and prepare to fix the bug of io loss while
'replacement' replace 'rdev'.

There is no functional change.

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
Link: https://lore.kernel.org/r/20230701080529.2684932-3-linan666@huaweicloud.com


Signed-off-by: default avatarSong Liu <song@kernel.org>
Stable-dep-of: 67364349 ("md/raid10: use dereference_rdev_and_rrdev() to get devices")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 246bac7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment