Skip to content

Commit

Permalink
md/raid1/ avoid bio search in end_sync_read()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeilBrown committed Oct 7, 2011
1 parent ba3ae3b commit 0fc280f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0fc280f

Please sign in to comment.