null_blk: refactor to support non-gendisk devices
authorMatias Bjørling <m@bjorling.me>
Fri, 16 Sep 2016 12:25:05 +0000 (14:25 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 21 Sep 2016 13:56:14 +0000 (07:56 -0600)
commit9ae2d0aa5046c67dd37cf4b70998ad296e718835
tree9fea1fbc1e84f22f14a0810f6fbd394273a34694
parentac81bfa9867103c9d50996ec21fa9179b81b727e
null_blk: refactor to support non-gendisk devices

With LightNVM enabled devices, the gendisk structure is not exposed
to the user. This hides the device driver specific sysfs entries, and
prevents binding of LightNVM geometry information to the device.

Refactor the device registration process, so that gendisk and
non-gendisk devices are easily managed.

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