]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: extend line wp balance check
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Mon, 11 Feb 2019 12:25:07 +0000 (13:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Feb 2019 15:18:07 +0000 (08:18 -0700)
commite80548999adb5a8db013def342b82b3c8bdf8fd4
tree8ee70cfdce3ed0dc1c7dde25d79f32a01c45f08a
parent9a7058e0b4c2c767fd9f4a590284530ff85c75a5
lightnvm: pblk: extend line wp balance check

pblk stripes writes of minimal write size across all non-offline chunks
in a line, which means that the maximum write pointer delta should not
exceed the minimal write size.

Extend the line write pointer balance check to cover this case, and
ignore the offline chunk wps.

This will render us a warning during recovery if something unexpected
has happened to the chunk write pointers (i.e. powerloss,  a spurious
chunk reset, ..).

Reported-by: Zhoujie Wu <zjwu@marvell.com>
Tested-by: Zhoujie Wu <zjwu@marvell.com>
Reviewed-by: Javier González <javier@javigon.com>
Signed-off-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-recovery.c