projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] md: Make sure bi_max_vecs is set properly in bio_split
[powerpc.git]
/
fs
/
bio.c
diff --git
a/fs/bio.c
b/fs/bio.c
index
eb8fbc5
..
098c12b
100644
(file)
--- a/
fs/bio.c
+++ b/
fs/bio.c
@@
-1116,6
+1116,9
@@
struct bio_pair *bio_split(struct bio *bi, mempool_t *pool, int first_sectors)
bp->bio1.bi_io_vec = &bp->bv1;
bp->bio2.bi_io_vec = &bp->bv2;
+ bp->bio1.bi_max_vecs = 1;
+ bp->bio2.bi_max_vecs = 1;
+
bp->bio1.bi_end_io = bio_pair_end_1;
bp->bio2.bi_end_io = bio_pair_end_2;