projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c4c333
)
[PATCH] md: Make sure bi_max_vecs is set properly in bio_split
author
NeilBrown
<
[email protected]
>
Tue, 23 May 2006 05:35:27 +0000
(22:35 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 23 May 2006 17:35:31 +0000
(10:35 -0700)
Else a subsequent bio_clone might make a mess.
Signed-off-by: Neil Brown <
[email protected]
>
Cc: "Don Dupuis" <
[email protected]
>
Acked-by: Jens Axboe <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/bio.c
patch
|
blob
|
history
diff --git
a/fs/bio.c
b/fs/bio.c
index eb8fbc53f2cd73273c8639c4dcb0648b30d15f70..098c12b2d60a9d8028a6a8fbdb2b03ecca84e3ba 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;