On Fri, Apr 24, 2015 at 12:09:32PM +1000, NeilBrown wrote: > I'm pretty sure that the md code is already as close to the "dm model" as it > meaningfully can be. > > If I move bdi_destroy out of blk_release_queue (which really think is too > later) and place it in blk_cleanup_queue (which seems a credible place for > it), and then move the blk_cleanup_queue call in md_free up before the > del_gendisk() call (which is probably the right thing to do anyway, though dm > has the same order that md currently has) then I don't get any crashes and > I'm almost convince it is correct... This looks reasonable to me, thanks. -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel