Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Else a subsequent bio_clone might make a mess.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: "Don Dupuis" <dondster@gmail.com>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

NeilBrown and committed by
Linus Torvalds
a2eb0c10 5c4c3331

+3
+3
fs/bio.c
··· 1116 1116 bp->bio1.bi_io_vec = &bp->bv1; 1117 1117 bp->bio2.bi_io_vec = &bp->bv2; 1118 1118 1119 + bp->bio1.bi_max_vecs = 1; 1120 + bp->bio2.bi_max_vecs = 1; 1121 + 1119 1122 bp->bio1.bi_end_io = bio_pair_end_1; 1120 1123 bp->bio2.bi_end_io = bio_pair_end_2; 1121 1124