lightnvm: refactor target type lookup
authorJavier González <javier@cnexlabs.com>
Fri, 5 Jan 2018 13:16:04 +0000 (14:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 15:50:12 +0000 (08:50 -0700)
commite29c80e6dd70d60de5db305eecf1aecf707b02e8
tree010bcc9b75eff3af63b0d39dd49aa068003ea299
parentfae7fae4077c24dc2be720b9f21f53adea98d7dd
lightnvm: refactor target type lookup

Refactor target type lookup to use/not use locks explicitly instead of
using a hidden parameter to make the function locking.

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