backend: abstract out waiting for completions
authorJens Axboe <axboe@fb.com>
Fri, 12 Dec 2014 15:49:12 +0000 (08:49 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 12 Dec 2014 15:49:12 +0000 (08:49 -0700)
commit69fea81e69ef2bd6db8eedf15b3c63510a7dc192
tree44a61c2f5b90540825b2fd94b681c8894600accf
parenta4d3b4dbf594be6223a21a47a7ce4c21c7dddaf0
backend: abstract out waiting for completions

We do it both in do_verify() and in do_io(), so it's duplicated code.
And we want to potentially add a completor thread, so lets move this
to a helper.

Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c