commit | a0c24f98b8fc547a8ec273bf5fb1277f6e0ef239 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Oct 28 09:03:11 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:01 2015 -0800 |
tree | ebedd4e2233cb9ef7d4fff5275d819a0ab767817 | |
parent | 9c1e0474fea89d68f6443c45d954ae8eee21d57d [diff] |
engines/rbd: use rbd_aio_is_complete() and add TRIM support Using fri->io_complete is potentially racy, since we have no locking around checking and waiting. Use the API provided function to check for completion instead. Add support for TRIM through rbd_aio_discard(). Cleanup the queue interface and completion creation. Signed-off-by: Jens Axboe <axboe@fb.com>