From: Radoslaw Zarzynski Date: Mon, 13 May 2019 15:57:12 +0000 (+0200) Subject: crimson, common: RefCountedObj doesn't use atomics in SeaStar builds. X-Git-Tag: v15.1.0~2677^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8889b1479285c6984aba7e569a6b6a91a95a43ef;p=ceph.git crimson, common: RefCountedObj doesn't use atomics in SeaStar builds. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/common/RefCountedObj.h b/src/common/RefCountedObj.h index 4cd4c9fd0a74..3ebbe78fd2ba 100644 --- a/src/common/RefCountedObj.h +++ b/src/common/RefCountedObj.h @@ -72,7 +72,12 @@ public: } private: +#ifndef WITH_SEASTAR mutable std::atomic nref; +#else + // crimson is single threaded at the moment + mutable uint64_t nref; +#endif CephContext *cct; };