]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ObjectCacher: optionally make writex always non-blocking
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 13 Mar 2013 16:37:21 +0000 (09:37 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 28 Mar 2013 17:46:58 +0000 (10:46 -0700)
commitc21250406eced8e5c467f492a2148c57978634f4
treeefe28339a36e144ff80624087d2e6f75c2249c1a
parent295c92ce91f7021faf9beb7fc50c36cbe702d9c8
ObjectCacher: optionally make writex always non-blocking

Add a callback argument to writex, and a finisher to run the
callbacks. Move the check for dirty+tx > max_dirty into a helper that
can be called from a wrapper around the callbacks from writex, or from
the current place in _wait_for_write().

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/client/Client.cc
src/librbd/ImageCtx.cc
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h
src/test/osdc/object_cacher_stress.cc