lightnvm: fix bio submission issue

[ Upstream commit 3cd485b1f8 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wenwei Tao 2016-01-12 07:49:15 +01:00 • committed by Greg Kroah-Hartman
commit cf48dc15f1
2 changed files with 4 additions and 2 deletions