]> asedeno.scripts.mit.edu Git - linux.git/commit
nvme: lightnvm: add late setup of block size and metadata
authorMatias Bjørling <mb@lightnvm.io>
Thu, 29 Mar 2018 22:05:05 +0000 (00:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2018 23:29:09 +0000 (17:29 -0600)
commit96257a8a7f3183613550c41a909819e028372b61
tree0d9f7c00b8c5d2e81f83f152df416cccfe220a03
parent89a09c5643e01f5e5d3c5f2e720053473a60a90b
nvme: lightnvm: add late setup of block size and metadata

The nvme driver sets up the size of the nvme namespace in two steps.
First it initializes the device with standard logical block and
metadata sizes, and then sets the correct logical block and metadata
size. Due to the OCSSD 2.0 specification relies on the namespace to
expose these sizes for correct initialization, let it be updated
appropriately on the LightNVM side as well.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/core.c
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/nvme.h