Re: [PATCH] lightnvm: fix bio submission issue

2015-12-12 Thread Matias
On 12/09/2015 02:26 PM, Wenwei Tao wrote: 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 --- drivers/lightnvm/gennvm.c | 2 +- drivers/lig

[PATCH] lightnvm: fix bio submission issue

2015-12-09 Thread Wenwei Tao
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 --- drivers/lightnvm/gennvm.c | 2 +- drivers/lightnvm/rrpc.c | 4 +++- 2 files changed, 4 in