]> git.baikalelectronics.ru Git - kernel.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)
commit65eb6ab998f857e6ab4b596dbd3c6730ad159509
tree44013f3467eef1ca9230812265f4497d20feebfb
parentdc19b36bf905accef166cea2de17999c36fcb149
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