Skip to content
Commit 6f8645cb authored by Simon A. F. Lund's avatar Simon A. F. Lund Committed by Jens Axboe
Browse files

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: default avatarSimon A. F. Lund <slund@cnexlabs.com>
Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 6063fe39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment