]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit426fc6ffac137c28938724087920262e9540cf55
tree0ca50311d5889caa98cd868ddc65e993c994995c
parentd6d552d210599642d54ad1db1b48f6762b93b58b
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