]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e6081db7beab4a94b6426100c02f6ab887ba0b2
tree9fea1fbc1e84f22f14a0810f6fbd394273a34694
parent854039232ff5502108927554ed2fb97726e18da9
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