mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
45bbd0529e
commit
976bdfcae3
2 changed files with 44 additions and 26 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue