lightnvm: remove mgt targets on mgt removal
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:03:17 +0000 (20:03 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commit976bdfcae32ea10c2c8c2ecaeb0d85873f634dad
tree479ceab3d7330f9acd8d64353ed2c238311171c1
parent45bbd0529e5d50aa91a4bb5fffffc5e24df3ef7e
lightnvm: remove mgt targets on mgt removal

Targets associated with a device manager are not freed on device
removal. They have to be manually removed before shutdown. Make sure
any outstanding targets are freed upon shutdown.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
include/linux/lightnvm.h