projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba3ae3b
)
md/raid1/ avoid bio search in end_sync_read()
author
NeilBrown
<neilb@suse.de>
Fri, 7 Oct 2011 03:22:55 +0000
(14:22 +1100)
committer
NeilBrown
<neilb@suse.de>
Fri, 7 Oct 2011 03:22:55 +0000
(14:22 +1100)
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>
drivers/md/raid1.c
patch
|
blob
|
history
diff --git
a/drivers/md/raid1.c
b/drivers/md/raid1.c
index a0c02fb8af2ad55d6ed033f07373f8b2732b6db2..77fab07abcee92607688bd4dcc945b5231776ed3 100644
(file)
--- a/
drivers/md/raid1.c
+++ b/
drivers/md/raid1.c
@@
-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,