]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: clarify badblocks lifetime
authorDan Williams <dan.j.williams@intel.com>
Wed, 6 Jan 2016 20:03:41 +0000 (12:03 -0800)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:46 +0000 (12:25 -0500)
commitd13a7935018de0084c82f37762b655a0de76ce6e
tree7697da6cb1c5d91c4f3705812f60c42883f42d67
parentf788175b124aabe06a5f6d95183d45bed18675eb
block: clarify badblocks lifetime

Orabug: 22913653

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>
(cherry picked from commit 20a308f09e0d29ce6f5a4114cc476a998d569bfb)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
block/badblocks.c
block/genhd.c