qed: Add return value to qed_aio_write_cow()
commita101341aa07237fa85907b1dcafd97add47a3875
authorKevin Wolf <kwolf@redhat.com>
Thu, 17 Nov 2016 14:40:41 +0000 (17 15:40 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:14 +0000 (26 14:51 +0200)
tree348eaa7315e9f860aaf3e12b9544781944b131bd
parenteaf0bc56f528611c2b13450b0ab0972eadf52a8e
qed: Add return value to qed_aio_write_cow()

Don't recurse into qed_aio_next_io() and qed_aio_complete() here, but
just return an error code and let the caller handle it.

While refactoring qed_aio_write_alloc() to accomodate the change,
qed_aio_write_zero_cluster() ended up with a single line, so I chose to
inline that line and remove the function completely.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qed.c