Skip to content

Commit 0fc280f

Browse files
committed
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: NeilBrown <neilb@suse.de>
1 parent ba3ae3b commit 0fc280f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/md/raid1.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,7 @@ static void end_sync_read(struct bio *bio, int error)
13581358
{
13591359
r1bio_t *r1_bio = bio->bi_private;
13601360

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

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

0 commit comments

Comments
 (0)