Skip to content
  • Dan Williams's avatar
    block: clarify badblocks lifetime · 20a308f0
    Dan Williams authored
    
    
    The badblocks list attached to a gendisk is allocated by the driver
    which equates to the driver owning the lifetime of the object.  Do not
    automatically free it in del_gendisk(). This is in preparation for
    expanding the use of badblocks in libnvdimm drivers and introducing
    devm_init_badblocks().
    
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    20a308f0