]> git.baikalelectronics.ru Git - kernel.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)
commit836d51d46083d5ca535d7c78688e03fe495f3b38
tree524deb9794c836ff79f304dce7052362e60e4db5
parent152d431142da5deb0e95a5cf3e70b8cb7351e429
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