From: Jianpeng Ma Date: Wed, 19 Aug 2015 06:54:21 +0000 (+0800) Subject: Objecter: Take RLocker when call is_active. X-Git-Tag: v0.94.6~86^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53316f3694c2a219541dcbdb0269ce97e2d2e9d7;p=ceph.git Objecter: Take RLocker when call is_active. Signed-off-by: Jianpeng Ma (cherry picked from commit 89f0112e001a2561f9a5cd705898d43c8909501f) --- diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index 244efc4d9c8b..96e49f8ff7f0 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -1948,6 +1948,7 @@ private: public: ceph_tid_t op_submit(Op *op, int *ctx_budget = NULL); bool is_active() { + RWLock::RLocker l(rwlock); return !((!inflight_ops.read()) && linger_ops.empty() && poolstat_ops.empty() && statfs_ops.empty()); }