mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
lightnvm: refactor dev->online_target to global nvm_targets
A target name must be unique. However, a per-device registration of targets is maintained on a dev->online_targets list, with a per-device search for targets upon registration. This results in a name collision when two targets, with the same name, are created on two different targets, where the per-device list is not shared. Signed-off-by: Simon A. F. Lund <slund@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
6063fe399d
commit
6f8645cba5
2 changed files with 25 additions and 23 deletions
|
@ -308,7 +308,6 @@ struct nvm_dev {
|
|||
struct nvm_dev_ops *ops;
|
||||
|
||||
struct list_head devices;
|
||||
struct list_head online_targets;
|
||||
|
||||
/* Media manager */
|
||||
struct nvmm_type *mt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue