]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: disable interleaved metadata
authorIgor Konopko <igor.j.konopko@intel.com>
Tue, 11 Dec 2018 19:16:25 +0000 (20:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Dec 2018 19:22:35 +0000 (12:22 -0700)
commit2adfa4736501eb900094049138427f4f829c1059
tree3708bab87ed721388fec3e349f8e33b8fb26eb5b
parent7650be1f52c41d771e4177e3c3d73cc5b4175148
lightnvm: disable interleaved metadata

Currently pblk only check the size of I/O metadata and does not take
into account if this metadata is in a separate buffer or interleaved
in a single metadata buffer.

In reality only the first scenario is supported, where second mode will
break pblk functionality during any IO operation.

This patch prevents pblk to be instantiated in case device only
supports interleaved metadata.

Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c
drivers/nvme/host/lightnvm.c
include/linux/lightnvm.h