lightnvm: prevent gennvm module unload on use
authorMatias Bjørling <m@bjorling.me>
Sun, 6 Dec 2015 10:25:50 +0000 (11:25 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 7 Dec 2015 16:14:19 +0000 (09:14 -0700)
commit008b74438269b368d57a14452afbc194f7f9ff2f
tree6abad4f9790c72d6d5b076deff52d992349db629
parent762796bc9e5758df6c72253e4ec19657055cea1f
lightnvm: prevent gennvm module unload on use

After the gennvm module has been initialized. It might be attached to
one or several devices. In that case, the module is in use. Make sure
that it can not be unloaded.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c