commit | 20a308f09e0d29ce6f5a4114cc476a998d569bfb | [log] [tgz] |
---|---|---|
author | Dan Williams <dan.j.williams@intel.com> | Wed Jan 06 12:03:41 2016 -0800 |
committer | Dan Williams <dan.j.williams@intel.com> | Sat Jan 09 08:39:04 2016 -0800 |
tree | 9a367827e11bb0960c975421a2579cb88db09e33 | |
parent | d3b407fb3f782bd915db64e266010ea30a2d381e [diff] |
block: clarify badblocks lifetime 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: Dan Williams <dan.j.williams@intel.com>