Re: Bisected, with rfc/patch - was Re: BUG: unable to handle kernel NULL pointer dereference at sysfs_do_create_link_sd (after mdadm)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux