From: Li Nan <linan122@xxxxxxxxxx> Changes in v2: - patch 2/3, change function name to dereference_rdev_and_rrdev. Return rdev to reduce output argument. Li Nan (3): md/raid10: check replacement and rdev to prevent submit the same io twice md/raid10: factor out dereference_rdev_and_rrdev() md/raid10: use dereference_rdev_and_rrdev() to get devices drivers/md/raid10.c | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) -- 2.39.2