{
ldout(client->cct, 20) << "flush_aio_writes_async " << this
<< " completion " << c << dendl;
- Mutex::Locker l(aio_write_list_lock);
+ std::lock_guard l(aio_write_list_lock);
ceph_tid_t seq = aio_write_seq;
if (aio_write_list.empty()) {
ldout(client->cct, 20) << "flush_aio_writes_async no writes. (tid "
{
if (!s)
return -EINVAL;
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
ostringstream oss;
oss << monclient.get_fsid();
*s = oss.str();
{
bool ret;
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
if (state == DISCONNECTED) {
ldout(cct, 10) << "disconnected, discarding " << *m << dendl;
m->put();
});
if (need_map) {
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
utime_t timeout;
if (cct->_conf->rados_mon_op_timeout > 0)
}
void librados::RadosClient::get() {
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
ceph_assert(refcnt > 0);
refcnt++;
}
bool librados::RadosClient::put() {
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
ceph_assert(refcnt > 0);
refcnt--;
return (refcnt == 0);
}
void librados::RadosClient::blacklist_self(bool set) {
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
objecter->blacklist_self(set);
}
const bufferlist &inbl,
bufferlist *outbl, string *outs)
{
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
C_SaferCond cond;
int r = mgrclient.start_command(cmd, inbl, outbl, outs, &cond);
rados_log_callback2_t cb2,
void *arg)
{
- Mutex::Locker l(lock);
+ std::lock_guard l(lock);
if (state != CONNECTED) {
return -ENOTCONN;
void ObjectCacher::C_WaitForWrite::finish(int r)
{
- Mutex::Locker l(m_oc->lock);
+ std::lock_guard l(m_oc->lock);
m_oc->maybe_wait_for_writeback(m_len, &m_trace);
m_onfinish->complete(r);
}