int AsyncMessenger::shutdown()
{
- ldout(cct,10) << __func__ << "shutdown " << get_myaddr() << dendl;
+ ldout(cct,10) << __func__ << " " << get_myaddr() << dendl;
for (vector<Worker*>::iterator it = workers.begin(); it != workers.end(); ++it)
(*it)->stop();
mark_down_all();
did_bind = false;
ldout(cct,20) << __func__ << ": stopped processor thread" << dendl;
- // close all pipes
+ // close all connections
lock.Lock();
{
- ldout(cct, 10) << __func__ << ": closing pipes" << dendl;
+ ldout(cct, 10) << __func__ << ": closing connections" << dendl;
while (!conns.empty()) {
AsyncConnectionRef p = conns.begin()->second;
return;
}
- // remote, no existing pipe.
+ // remote, no existing connection.
const Policy& policy = get_policy(dest_type);
if (policy.server) {
ldout(cct, 20) << __func__ << " " << *m << " remote, " << dest_addr
<< ceph_entity_type_name(dest_type) << ", no session, dropping." << dendl;
m->put();
} else {
- ldout(cct,20) << __func__ << " " << *m << " remote, " << dest_addr << ", new pipe." << dendl;
+ ldout(cct,20) << __func__ << " " << *m << " remote, " << dest_addr << ", new connection." << dendl;
}
}
p->get();
ms_deliver_handle_reset(p.get());
} else {
- ldout(cct, 1) << __func__ << " " << addr << " -- pipe dne" << dendl;
+ ldout(cct, 1) << __func__ << " " << addr << " -- connection dne" << dendl;
}
lock.Unlock();
}
int EpollDriver::add_event(int fd, int cur_mask, int add_mask)
{
+ ldout(cct, 20) << __func__ << " add event fd=" << fd << " cur_mask=" << cur_mask
+ << " add_mask=" << add_mask << dendl;
struct epoll_event ee;
/* If the fd was already monitored for some event, we need a MOD
* operation. Otherwise we need an ADD operation. */
return -errno;
}
- ldout(cct, 10) << __func__ << " add event to fd=" << fd << " mask=" << add_mask
- << dendl;
return 0;
}
void EpollDriver::del_event(int fd, int cur_mask, int delmask)
{
+ ldout(cct, 20) << __func__ << " del event fd=" << fd << " cur_mask=" << cur_mask
+ << " delmask=" << delmask << dendl;
struct epoll_event ee;
int mask = cur_mask & (~delmask);
<< " failed." << cpp_strerror(errno) << dendl;
}
}
- ldout(cct, 10) << __func__ << " del event fd=" << fd << " cur mask=" << mask
- << dendl;
}
int EpollDriver::resize_events(int newsize)
int KqueueDriver::add_event(int fd, int cur_mask, int add_mask)
{
+ ldout(cct, 20) << __func__ << " add event fd=" << fd << " cur_mask=" << cur_mask
+ << "add_mask" << add_mask << dendl;
struct kevent ke;
int filter = 0;
filter |= add_mask & EVENT_READABLE ? EVFILT_READ : 0;
}
}
- ldout(cct, 10) << __func__ << " add event to fd=" << fd << " mask=" << filter
- << dendl;
return 0;
}
void KqueueDriver::del_event(int fd, int cur_mask, int delmask)
{
+ ldout(cct, 20) << __func__ << " del event fd=" << fd << " cur mask=" << cur_mask
+ << " delmask=" << delmask << dendl;
struct kevent ee;
struct kevent ke;
int filter = 0;
<< " failed." << cpp_strerror(errno) << dendl;
}
}
- ldout(cct, 10) << __func__ << " del event fd=" << fd << " cur mask=" << filter
- << dendl;
}
int KqueueDriver::resize_events(int newsize)