lightnvm: fix bio submission issue
authorWenwei Tao <ww.tao0320@gmail.com>
Tue, 12 Jan 2016 06:49:15 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:15 +0000 (08:21 -0700)
commit3cd485b1f8e25a6534eb4c542e7eba1b944fbaaf
tree57095214abdef867218f39434ed3ca72870d3263
parent168309855a7d1e16db751e9c647119fe2d2dc878
lightnvm: fix bio submission issue

Put bio when submission fails, since we get it
before submission. And return error when backend
device driver doesn't provide a submit_io method,
thus we can end IO properly.

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/gennvm.c
drivers/lightnvm/rrpc.c