]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Objecter: Take RLocker when call is_active.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 19 Aug 2015 06:54:21 +0000 (14:54 +0800)
committerLoic Dachary <ldachary@redhat.com>
Fri, 2 Oct 2015 13:37:33 +0000 (15:37 +0200)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 89f0112e001a2561f9a5cd705898d43c8909501f)

src/osdc/Objecter.h

index 244efc4d9c8b286e79bc350f5d8b5ba3e52ea7ab..96e49f8ff7f07076f0b6360495edd098a2225bff 100644 (file)
@@ -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());
   }