lightnvm: handle submit_io failure
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:02:55 +0000 (20:02 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commitecfb40c6aa5691257054eac81bc8bdfd5442e8e5
treea3746289014c46fbb787bd2c397a68cbe651ca45
parent57aac2f1be4a0711b7f24f7d367e8672ebaa3844
lightnvm: handle submit_io failure

The device ->submit_io() callback might fail to submit I/O to device.
In that case, the nvm_submit_ppa function should not wait for
completion. Instead return the ->submit_io() error.

Reviewed by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c