Re: [PATCH v2 01/14] block: Generalized bio pool freeing

From
Tejun Heo <hidden>
Date
2012-05-24 16:19:14
Also in
dm-devel, linux-fsdevel, lkml
On Thu, May 24, 2012 at 09:09:44AM -0700, Tejun Heo wrote:
On Wed, May 23, 2012 at 05:02:38PM -0700, Kent Overstreet wrote:
quoted
With the old code, when you allocate a bio from a bio pool you have to
implement your own destructor that knows how to find the bio pool the
bio was originally allocated from.

This adds a new field to struct bio (bi_pool) and changes
bio_alloc_bioset() to use it. This makes various bio destructors
unnecessary, so they're then deleted.

Signed-off-by: Kent Overstreet <redacted>
Change-Id: I5eb66c1d6910757f4af8755b8857dcbe4619cf8d
Please drop Change-ID tag and it would be great how you tested the
changes, other than that,

 Acked-by: Tejun Heo [off-list ref]
To add a bit here too.  Please explain "why" you're making this
change.  Is it because bi_destructor interface is cumbersome?  Adding
bi_pool is overhead - why is it justified?  Is it because one pointer
is fine to add to struct bio (which I kinda agree) or are there future
changes which will reverse the overhead (which is the case here).

In general, I find the descriptions insufficient.  They don't describe
the reasons and reasoning behind the patch.

Thanks.

-- 
tejun
Thread (1 message) 1 message, 1 author, last reply 2012-05-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help