]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: rollback on error during gc read
authorIgor Konopko <igor.j.konopko@intel.com>
Sat, 4 May 2019 18:37:47 +0000 (20:37 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 May 2019 16:19:16 +0000 (10:19 -0600)
commitf1160b1fd7e630da325d6f26a88b9e5776de9d22
tree3e5934a73a51d264068fc8bda377651983a00d1c
parent0ab2fc98c5d106ef4573134d146a156857e8f25c
lightnvm: pblk: rollback on error during gc read

A line is left unsigned to the blocks lists in case pblk_gc_line
returns an error.

This moves the line back to be appropriate list, which can then be
picked up by the garbage collector.

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