]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: ensure that erase is chunk aligned
authorIgor Konopko <igor.j.konopko@intel.com>
Sat, 4 May 2019 18:37:52 +0000 (20:37 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 May 2019 16:19:17 +0000 (10:19 -0600)
commit02083532d4334c276602e871cb7d7100116f2fb5
tree983227be044b9f04735196e97880e71ab29c093b
parent1e42855efd48652fd74b627b49dc307999aa256e
lightnvm: pblk: ensure that erase is chunk aligned

The sector bits in the erase command may be uninitialized are
uninitialized, causing the erase LBA to be unaligned to the chunk size.

This is unexpected situation, since erase shall always be chunk
aligned based on OCSSD the 2.0 specification.

Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
Reviewed-by: Javier González <javier@javigon.com>
Reviewed-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-map.c