diff options
| author | Matias Bjørling <[email protected]> | 2018-12-11 19:16:20 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-12-11 19:22:34 +0000 |
| commit | 85136c0102852fe505c0fbd3f1bf9d17038bb94d (patch) | |
| tree | d29935a0632710c0c89212a7bfca66042ae2b834 /drivers/lightnvm/pblk-init.c | |
| parent | lightnvm: pblk: add comments wrt locking in recovery path (diff) | |
| download | kernel-85136c0102852fe505c0fbd3f1bf9d17038bb94d.tar.gz kernel-85136c0102852fe505c0fbd3f1bf9d17038bb94d.zip | |
lightnvm: simplify geometry enumeration
Currently the geometry of an OCSSD is enumerated using a two step
approach:
First, nvm_register is called, the OCSSD identify command is issued,
and second the geometry sos and csecs values are read either from the
OCSSD identify if it is a 1.2 drive, or from the NVMe namespace data
structure if it is a 2.0 device.
This patch recombines it into a single step, such that nvm_register can
use the csecs and sos fields independent of which version is used. This
enables one to dynamically size the lightnvm subsystem dma pool.
Reviewed-by: Igor Konopko <[email protected]>
Reviewed-by: Javier González <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
0 files changed, 0 insertions, 0 deletions
