[dm-devel] Re: Re: [PATCH] device-mapper core should use private bioset

Stefan Bader Stefan.Bader at de.ibm.com
Tue Aug 15 15:31:45 UTC 2006


Alasdair G Kergon <agk at redhat.com> wrote on 15.08.2006 17:17:25:

> On Tue, Aug 15, 2006 at 05:03:34PM +0200, Stefan Bader wrote:
> > --- linux-2.6.17/drivers/md/dm.c   2006-06-19 14:01:40.000000000 +0200
> > +++ linux-2.6.17-new/drivers/md/dm.c   2006-08-15 16:21:30.000000000 
+0200
> > @@ -44,6 +44,7 @@ struct dm_io {
> >  struct target_io {
> >     struct dm_io *io;
> >     struct dm_target *ti;
> > +   struct bio_set *bs;
> >     union map_info info;
> >  };
> 
> Can this be avoided, perhaps with some cunning?
> As indicated in the comment, we want this structure to shrink ratherthan 
grow.
> 

IMHO the best solution would be to have a bio reference the bioset it came 
from.
But then I don't think people would like the bio structure to grow... I'll 
give
it some more thought.

Stefan




More information about the dm-devel mailing list