lightnvm: move responsibility for bad blk mgmt to target
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:03:08 +0000 (20:03 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commita63d5cf2031cc84443440caf32c175b3548ac6b8
treea2b6b098163bdeaf048f32a446301c99d1f025d2
parent5ebc7d9fe13ff9bd3622d0be3cd39c8751459be6
lightnvm: move responsibility for bad blk mgmt to target

We move the responsibility of managing the persistent bad block table to
the target. The target may choose to mark a block bad or retry writing
to it. Never the less, it should be the target that makes the decision
and not the media manager.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c