ldout(cct,25) << "on_msg session " << session << " xcon " << xcon << dendl;
- static uint32_t nreqs;
if (unlikely(XioPool::trace_mempool)) {
+ static uint32_t nreqs;
if (unlikely((++nreqs % 65536) == 0)) {
xp_stats.dump(__func__, nreqs);
}
const std::list<buffer::ptr>& buffers = bl.buffers();
list<bufferptr>::const_iterator pb;
- size_t size, off, count;
+ size_t size, off;
int result;
int first = 1;
size = pb->length();
first = 0;
}
- count = size - off;
+ size_t count = size - off;
if (!count) continue;
if (req_size + count > MAX_XIO_BUF_SIZE) {
count = MAX_XIO_BUF_SIZE - req_size;
const std::list<buffer::ptr>& buffers = bl.buffers();
list<bufferptr>::const_iterator pb;
struct xio_iovec_ex* iov;
- size_t size, off, count;
+ size_t size, off;
const char *data = NULL;
int first = 1;
data = pb->c_str(); // is c_str() efficient?
first = 0;
}
- count = size - off;
+ size_t count = size - off;
if (!count) continue;
if (req_size + count > MAX_XIO_BUF_SIZE) {
count = MAX_XIO_BUF_SIZE - req_size;
{
int code = 0;
- static uint32_t nreqs;
Mutex::Locker l(xcon->lock);
if (unlikely(XioPool::trace_mempool)) {
+ static uint32_t nreqs;
if (unlikely((++nreqs % 65536) == 0)) {
xp_stats.dump(__func__, nreqs);
}
// and push them in FIFO order to front of the input queue,
// and mark the connection as flow-controlled
XioSubmit::Queue requeue_q;
- XioSubmit *xs;
XioMsg *xmsg;
while (q_iter != send_q.end()) {
- xs = &(*q_iter);
+ XioSubmit *xs = &(*q_iter);
// skip retires and anything for other connections
if ((xs->type != XioSubmit::OUTGOING_MSG) ||
(xs->xcon != xcon))
void shutdown()
{
- XioPortal *portal;
int nportals = portals.size();
for (int p_ix = 0; p_ix < nportals; ++p_ix) {
- portal = portals[p_ix];
+ XioPortal *portal = portals[p_ix];
portal->shutdown();
}
}
void join()
{
- XioPortal *portal;
int nportals = portals.size();
for (int p_ix = 0; p_ix < nportals; ++p_ix) {
- portal = portals[p_ix];
+ XioPortal *portal = portals[p_ix];
portal->join();
}
}