From 5f7d56b5549d4b94fb9f6a91663134305f571ec3 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 22 May 2006 22:35:27 -0700 Subject: [PATCH] --- yaml --- r: 26925 b: refs/heads/master c: a2eb0c101d24aca9d3d16c30c4f79f3a70c89208 h: refs/heads/master i: 26923: 942b571bac55762a5a808a18a4a383d50f3b8563 v: v3 --- [refs] | 2 +- trunk/fs/bio.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 31e2f88c2bea..70c57fded06e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5c4c33318d26620fa552f15bbb6d0f9775a1b4df +refs/heads/master: a2eb0c101d24aca9d3d16c30c4f79f3a70c89208 diff --git a/trunk/fs/bio.c b/trunk/fs/bio.c index eb8fbc53f2cd..098c12b2d60a 100644 --- a/trunk/fs/bio.c +++ b/trunk/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;