]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lightnvm: do not load L2P table if not supported
authorJavier González <jg@lightnvm.io>
Thu, 3 Mar 2016 14:06:41 +0000 (15:06 +0100)
committerJens Axboe <axboe@fb.com>
Sat, 19 Mar 2016 01:10:38 +0000 (18:10 -0700)
commit29fd20b8e68a4d31a82909265b1e650b7b860f54
tree70124e47c668e73a998367e1e142f4680188ef85
parent719b59172cdcd5a2ba532b4bb4d56c36df20c28e
lightnvm: do not load L2P table if not supported

An Open-Channel SSD can work on two modes: (i) hybrid mode, where the
L2P table is maintained both by the host and by the device; and (ii)
full host-based, where the L2P table is uniquely maintained by the host.

In the advent of a new target implementing the full host-based mode, do
not assume that the L2P table must be loaded on the generic media
manager; check device properties loaded on the identify command instead.

Signed-off-by: Javier González <javier@cnexlabs.com>
Moved into the following statement.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c