From: Greg Farnum Date: Fri, 4 Oct 2013 22:54:21 +0000 (-0700) Subject: ReplicatedPG: cache: don't handle cache if the obc is blocked X-Git-Tag: v0.72-rc1~13^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=808fa9ad399eda209ca971688950ab5be881b00b;p=ceph.git ReplicatedPG: cache: don't handle cache if the obc is blocked Right now the only way that can happen is if we're in the middle of a promote! Signed-off-by: Greg Farnum --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 1952b860372c..df69ecb20e47 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1147,6 +1147,10 @@ void ReplicatedPG::do_op(OpRequestRef op) bool ReplicatedPG::maybe_handle_cache(OpRequestRef op, ObjectContextRef obc, int r) { + if (obc.get() && obc->is_blocked()) { + // we're already doing something with this object + return false; + } switch(pool.info.cache_mode) { case pg_pool_t::CACHEMODE_NONE: return false;