lightnvm: put block back to gc list on its reclaim fail
authorWenwei Tao <ww.tao0320@gmail.com>
Tue, 12 Jan 2016 06:49:24 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:16 +0000 (08:21 -0700)
commitd0ca798f960ad7d86f5186fe312c131d00563eb7
tree2900e3849549171ec2914539c7ebb9a3b4554db3
parent2b11c1b24e50a26d435f1d59955f1268053623b7
lightnvm: put block back to gc list on its reclaim fail

We delete a block from the gc list before reclaim it, so
put it back to the list on its reclaim fail, otherwise
this block will not get reclaimed and be programmable
in the future.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c