md/raid1: use rdev in raid1_write_request directly
authorGuoqing Jiang <guoqing.jiang@linux.dev>
Mon, 4 Oct 2021 15:34:50 +0000 (23:34 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:50:28 +0000 (14:50 -0600)
commit2e94275ed582d9bfe1abc5d5ee565715cc3e6b38
treec925e55c615dd7b9a4664d492388afb684384423
parentfd3b6975e9c11c4fa00965f82a0bfbb3b7b44101
md/raid1: use rdev in raid1_write_request directly

We already get rdev from conf->mirrors[i].rdev at the beginning of the
loop, so just use it.

Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid1.c