Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fc280f6 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid1/ avoid bio search in end_sync_read()



We know which device we just read from so we don't need to
search the bios to find out.  Just use ->read_disk.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent ba3ae3be
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1358,8 +1358,7 @@ static void end_sync_read(struct bio *bio, int error)
{
	r1bio_t *r1_bio = bio->bi_private;

	/* this will call update_head_pos() */
	find_bio_disk(r1_bio, bio);
	update_head_pos(r1_bio->read_disk, r1_bio);

	/*
	 * we have read a block, now it needs to be re-written,