On Mon, Jun 13, 2016 at 01:26:24AM +0000, Anton Altaparmakov wrote: > Hi Christoph, > > I think the reason the storage unplug crashes came back in 4.1 kernel after your work in 4.0 kernel to fix them is this commit: 6cd18e711dd8 "block: destroy bdi before blockdev is unregistered." > > The fix was to basically violate the lifetime rules/reference counting you put in place and destroy the bdi before the reference count reaches zero which means we are back at square one! The whole point of the reference count was specifically so that devices are not destroyed before the reference count becomes zero. Or at least that was my understanding/assumption... Yes, that area is a mess. Unfortunately I've been too busy to fight in in detail - since then the writeback code also got trainwrecked by the cgroups writeback support and it will take a long time for me to get back into it. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html