#include "common/LogClient.h"
#include "common/ceph_mutex.h"
+#include "common/fair_mutex.h"
#include "common/Timer.h"
#include "include/Context.h"
#include "include/types.h"
* also check the `stopping` flag. If stopping is true, you
* must either do nothing and immediately drop the lock, or
* never drop the lock again (i.e. call respawn()) */
- ceph::mutex mds_lock = ceph::make_mutex("MDSDaemon::mds_lock");
+ ceph::fair_mutex mds_lock{"MDSDaemon::mds_lock"};
bool stopping = false;
- SafeTimer timer;
+ class CommonSafeTimer<ceph::fair_mutex> timer;
std::string gss_ktfile_client{};
int orig_argc;