]> asedeno.scripts.mit.edu Git - linux.git/commit
lightnvm: guarantee target unique name across devs.
authorJavier González <javier@cnexlabs.com>
Fri, 5 Jan 2018 13:16:05 +0000 (14:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 15:50:12 +0000 (08:50 -0700)
commitbd77b23b40370f0f37b6457a8d2a4ed2f2ba22c1
tree524deb9794c836ff79f304dce7052362e60e4db5
parente29c80e6dd70d60de5db305eecf1aecf707b02e8
lightnvm: guarantee target unique name across devs.

Until now, target unique naming is only guaranteed per device. This is
ok from a lightnvm perspective, but not from a sysfs one, since groups
will collide regardless of the underlying device.

Check that names are unique across all lightnvm-capable devices.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/core.c