]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
lightnvm: pblk: warn in case of corrupted write buffer
authorJavier González <javier@javigon.com>
Fri, 1 Jun 2018 13:04:19 +0000 (15:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Jun 2018 13:43:53 +0000 (07:43 -0600)
commite37d07983af9068de0303054542d2652ca917f58
tree44013f3467eef1ca9230812265f4497d20feebfb
parent03a34b2d25a4ca6ba691312feaa0b4d3cb3fd63d
lightnvm: pblk: warn in case of corrupted write buffer

When cleaning up buffer entries as we wrap up, their state should be
"completed". If any of the entries is in "submitted" state, it means
that something bad has happened. Trigger a warning immediately instead of
waiting for the state flag to eventually be updated, thus hiding the
issue.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-rb.c