summaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorSimon A. F. Lund <slund@cnexlabs.com>2016-05-06 20:03:03 +0200
committerJens Axboe <axboe@fb.com>2016-05-06 12:51:10 -0600
commit6f8645cba54a4b2983bbd46f462b5891ffbd72fc (patch)
tree5ec5bc7246b403109203cb58c9aa164b0b2f3ae4 /include/linux/lightnvm.h
parent6063fe399d0913e7bd4462650cd4f31b479a83c9 (diff)
downloadlinux-0-day-6f8645cba54a4b2983bbd46f462b5891ffbd72fc.tar.gz
linux-0-day-6f8645cba54a4b2983bbd46f462b5891ffbd72fc.tar.xz
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>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 497da91510b25..5eabdbaa87bc7 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -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;