rbd: various fixes and cleanups
authorJens Axboe <axboe@fb.com>
Mon, 27 Oct 2014 16:53:52 +0000 (10:53 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 27 Oct 2014 16:53:52 +0000 (10:53 -0600)
commitd8b64af2a1688c3c3d218cba0faad57a3ba050e8
treed7f689a865e4b52e8bc4212d0192e5977101f0fe
parent3d0ebb30e8f97934603aaf22e82b1cc8bb790765
rbd: various fixes and cleanups

- Don't use usleep() when no completions are available, call into
  rbd to wait for one.

- Check for errors on reads/writes/syncs instead of just assuming
  that everything went fine.

- Fix leak of completions when read/write/sync fails.

- Style cleanups, and remove unnecessary casts.

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/rbd.c