[dm-devel] [PATCH v10 1/8] block: Generalized bio pool freeing

Alasdair G Kergon agk at redhat.com
Tue Sep 18 16:31:57 UTC 2012


On Mon, Sep 17, 2012 at 01:51:39PM -0700, Kent Overstreet wrote:
> That isn't a very good patch - it says it's clearing bi_end_io as a
> precaution, but as a precaution to what?
 
As a precaution against the endio function being called an extra time by
mistake if a stray reference remains after the bio has been freed.
Wipe this field when dm frees it.  Defensive programming, basically,
in response to a tricky bug he had to deal with.

Alasdair




More information about the dm-devel mailing list