From: Li Nan <linan122@xxxxxxxxxx> Replacement can replace rdev during replacement io pending. mirror->rdev/replacement might be changed during io pending. Get rdev from it is risky. This patch series record rdev/replacement in r10bio, and get rdev from r10bio to fix bugs in normal write. And I want to do this for each io type later. Li Nan (3): md/raid10: record rdev/replacement in struct r10bio md/raid10: get rdev/replacemenet from r10bio for normal write md/raid10: improve raid10_end_write_request() drivers/md/raid10.c | 96 ++++++++++++++++++++++----------------------- drivers/md/raid10.h | 12 +++--- 2 files changed, 54 insertions(+), 54 deletions(-) -- 2.39.2