Re: [PATCH] add local bio pool support and modify dm

2005-02-02 Thread Jens Axboe
On Wed, Feb 02 2005, Andrew Morton wrote: > Dave Olien <[EMAIL PROTECTED]> wrote: > > > > +extern inline void zero_fill_bio(struct bio *bio) > > +{ > > + unsigned long flags; > > + struct bio_vec *bv; > > + int i; > > + > > + bio_for_each_segment(bv, bio, i) { > > + char *data

Re: [PATCH] add local bio pool support and modify dm

2005-02-02 Thread Andrew Morton
Dave Olien <[EMAIL PROTECTED]> wrote: > > +extern inline void zero_fill_bio(struct bio *bio) > +{ > +unsigned long flags; > +struct bio_vec *bv; > +int i; > + > +bio_for_each_segment(bv, bio, i) { > +char *data = bvec_kmap_irq(bv, ); > +memset(data,

Re: [PATCH] add local bio pool support and modify dm

2005-02-02 Thread Andrew Morton
Dave Olien [EMAIL PROTECTED] wrote: +extern inline void zero_fill_bio(struct bio *bio) +{ +unsigned long flags; +struct bio_vec *bv; +int i; + +bio_for_each_segment(bv, bio, i) { +char *data = bvec_kmap_irq(bv, flags); +memset(data, 0,

Re: [PATCH] add local bio pool support and modify dm

2005-02-02 Thread Jens Axboe
On Wed, Feb 02 2005, Andrew Morton wrote: Dave Olien [EMAIL PROTECTED] wrote: +extern inline void zero_fill_bio(struct bio *bio) +{ + unsigned long flags; + struct bio_vec *bv; + int i; + + bio_for_each_segment(bv, bio, i) { + char *data = bvec_kmap_irq(bv,

[PATCH] add local bio pool support and modify dm

2005-02-01 Thread Dave Olien
Hi Andrew, I've had this patch reviewed by Jens, and incorporated his recommended fixes. This patch applies to the latest bk tree. The patch adds new interfaces to bio.c that support the creation of local bio and bvec pools. This is important for layered drivers that need to allocate new bio

[PATCH] add local bio pool support and modify dm

2005-02-01 Thread Dave Olien
Hi Andrew, I've had this patch reviewed by Jens, and incorporated his recommended fixes. This patch applies to the latest bk tree. The patch adds new interfaces to bio.c that support the creation of local bio and bvec pools. This is important for layered drivers that need to allocate new bio