On Thu, 23 Apr 2015 09:37:24 +0200 Christoph Hellwig <hch@xxxxxx> wrote: > Plase fix your device name lifetimes. Any chance you could be more explicit? The commit you identified doesn't seem to help much - md and dm are quite different in this area. It seems that it is no longer safe to call 'add_disk' between calling 'del_gendisk' and bdi_destroy being called. How can I find out if I am in that window, or wait for bdi_destroy to be called? Thanks, NeilBrown > > See the DM commit > > 63a4f0 ("dm: fix add_disk() NULL pointer due to race with free_dev()") > > for a template. > > Unregistering the device too early means we'll have half constructed > bdis hanging around, which caused all kinds of problems for filesystems > and the writeback code.
Attachment:
pgpOUIS0IY20V.pgp
Description: OpenPGP digital signature