nvme: refactor namespaces to support non-gendisk devices
authorMatias Bjørling <m@bjorling.me>
Fri, 16 Sep 2016 12:25:04 +0000 (14:25 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 21 Sep 2016 13:56:12 +0000 (07:56 -0600)
commitac81bfa9867103c9d50996ec21fa9179b81b727e
treef286f5ea3943c3532b852b44c460d6beb0c6d3c7
parente105ddb4a2a13d779311349df2c32fa22a87c406
nvme: refactor namespaces to support non-gendisk devices

With LightNVM enabled namespaces, the gendisk structure is not exposed
to the user. This prevents LightNVM users from accessing the NVMe device
driver specific sysfs entries, and LightNVM namespace geometry.

Refactor the revalidation process, so that a namespace, instead of a
gendisk, is revalidated. This later allows patches to wire up the
sysfs entries up to a non-gendisk namespace.

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