Skip to content
Snippets Groups Projects
Commit 20a308f0 authored by Dan Williams's avatar Dan Williams
Browse files

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: default avatarDan Williams <dan.j.williams@intel.com>
parent d3b407fb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment