Merge pull request #28085 from rzarzynski/wip-crimson-no-atomics-in-refcntobj

crimson, common: RefCountedObj doesn't use atomics in Seastar builds.

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-05-14 09:15:28 +08:00 committed by GitHub
commit 6997586414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,12 @@ public:
}
private:
#ifndef WITH_SEASTAR
mutable std::atomic<uint64_t> nref;
#else
// crimson is single threaded at the moment
mutable uint64_t nref;
#endif
CephContext *cct;
};