diff options
author | Matias Bjørling <m@bjorling.me> | 2016-05-06 20:03:17 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-06 12:51:10 -0600 |
commit | 976bdfcae32ea10c2c8c2ecaeb0d85873f634dad (patch) | |
tree | 479ceab3d7330f9acd8d64353ed2c238311171c1 /include/linux/lightnvm.h | |
parent | 45bbd0529e5d50aa91a4bb5fffffc5e24df3ef7e (diff) | |
download | linux-976bdfcae32ea10c2c8c2ecaeb0d85873f634dad.tar.gz linux-976bdfcae32ea10c2c8c2ecaeb0d85873f634dad.tar.bz2 linux-976bdfcae32ea10c2c8c2ecaeb0d85873f634dad.zip |
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>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index 0e8e01956325..cde31ffe2d62 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -200,6 +200,7 @@ struct nvm_id { struct nvm_target { struct list_head list; + struct nvm_dev *dev; struct nvm_tgt_type *type; struct gendisk *disk; }; |