Thread (4 messages) 4 messages, 2 authors, 2006-05-22
STALE7332d

[PATCH 002 of 2] md: Make sure bi_max_vecs is set properly in bio_split

From: NeilBrown <hidden>
Date: 2006-05-22 06:19:38
Also in: lkml

Else a subsequence bio_clone might make a mess.

Signed-off-by: Neil Brown <redacted>
Cc: "Don Dupuis" <redacted>
Cc: Jens Axboe <redacted>
### Diffstat output
 ./fs/bio.c |    3 +++
 1 file changed, 3 insertions(+)

diff ./fs/bio.c~current~ ./fs/bio.c
--- ./fs/bio.c~current~	2006-05-22 16:12:46.000000000 +1000
+++ ./fs/bio.c	2006-05-22 16:12:16.000000000 +1000
@@ -1103,6 +1103,9 @@ struct bio_pair *bio_split(struct bio *b
 	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;
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help