diff options
author | Matias Bjørling <m@bjorling.me> | 2016-05-06 14:03:17 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-06 14:51:10 -0400 |
commit | 976bdfcae32ea10c2c8c2ecaeb0d85873f634dad (patch) | |
tree | 479ceab3d7330f9acd8d64353ed2c238311171c1 /include/linux/lightnvm.h | |
parent | 45bbd0529e5d50aa91a4bb5fffffc5e24df3ef7e (diff) |
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 { | |||
200 | 200 | ||
201 | struct nvm_target { | 201 | struct nvm_target { |
202 | struct list_head list; | 202 | struct list_head list; |
203 | struct nvm_dev *dev; | ||
203 | struct nvm_tgt_type *type; | 204 | struct nvm_tgt_type *type; |
204 | struct gendisk *disk; | 205 | struct gendisk *disk; |
205 | }; | 206 | }; |