null_blk: do not del gendisk with lightnvm
authorMatias Bjørling <m@bjorling.me>
Thu, 19 Nov 2015 11:50:10 +0000 (12:50 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 19 Nov 2015 22:15:56 +0000 (15:15 -0700)
commit54514aa465e94316a4bf1c5dfe970536bec3e76f
tree0ca50311d5889caa98cd868ddc65e993c994995c
parent5b40db99099ddebe31e9b1b759894cf09c0c6679
null_blk: do not del gendisk with lightnvm

The gendisk structure has not been initialized when using lightnvm.
Make sure to not delete it upon exit. Also make sure that we use the
appropriate disk_name at unregistration.

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