]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: Skip rbd cache flush if journaling is enabled under aio_flush 9093/head
authorYuan Zhou <yuan.zhou@intel.com>
Thu, 12 May 2016 10:22:12 +0000 (18:22 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Wed, 15 Jun 2016 00:02:03 +0000 (08:02 +0800)
commitf2def83b7a4a98bc60db5ba8936d78a49abace88
tree7c0b4dc16d34832368cdf936508107d0a927719e
parent54b6c99f8f191958919a1d08a57b4bbad18ba57a
rbd: Skip rbd cache flush if journaling is enabled under aio_flush

With journaling rbd writes will be persisteted on rbd journal objects.
The journal will be replayed if crash happen. So it's not necessary to
flush rbd_cache in this case. This will improve the flush latency.

This patch adds checking on handling aio_flush: if journaling is
enabled, rbd cache flushing is skipped.
In a system flush(ImageCtx::flush) the cache is flushed even w/ journaling
where we truly do need to flush all IO out to disk.

Fixes: http://tracker.ceph.com/issues/15761
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/librbd/AioImageRequest.cc