From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Philipp Reisner To: Jens Axboe Date: Tue, 15 Mar 2005 21:15:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503152115.58219.philipp.reisner@linbit.com> Cc: drbd-dev@linbit.com Subject: [Drbd-dev] bio_split()... List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Jens, bio_split only works for bios with a single page... [ from bio.c: ] /* * split a bio - only worry about a bio with a single page * in it's iovec */ struct bio_pair *bio_split(struct bio *bi, mempool_t *pool, int first_sectors) { struct bio_pair *bp = mempool_alloc(pool, GFP_NOIO); if (!bp) return bp; BUG_ON(bi->bi_vcnt != 1); [...] In DRBD-0.8 I want to split BIO's that cross a 16 MB boundary. In DRBD-0.8 I accept BIOs with more than one page (currently up to 32 kB in a single BIO), I thought that bio_split is here to handle such situations.... Is there an other way to go ? Would you accept a patch that would make bio_split to work with bigger BIOs ? Currently my code hits that BUG_ON statement.... -Philipp