All of lore.kernel.org
 help / color / mirror / Atom feed
* Not matching event states in ./msg/async/AsyncConnection.cc
@ 2016-06-19 21:28 Willem Jan Withagen
  2016-06-20  2:40 ` Haomai Wang
  0 siblings, 1 reply; 13+ messages in thread
From: Willem Jan Withagen @ 2016-06-19 21:28 UTC (permalink / raw)
  To: Ceph Development

Hi,

I 've just rebased, but now I'm getting BUG warnings in del_event()
calls. And I suspect that it is because of the snippet below...

In STATE_CONNECTING EVENT_READABLE is set on sd, but we try a bit latter
to remove EVENT_WRITABLE. Which abort since asserts were added to the
kevent code.

Could it be that in STATE_CONNECTING_RE EVENT_READABLE needs to be removed?

--WjW


./msg/async/AsyncConnection.cc at line 1014
    case STATE_CONNECTING_RE:
      {
        r = net.reconnect(get_peer_addr(), sd);
        if (r < 0) {
          ldout(async_msgr->cct, 1) << __func__ << " reconnect failed "
<< dendl;
          goto fail;
        } else if (r > 0) {
          ldout(async_msgr->cct, 10) << __func__ << " nonblock connect
inprogress" << dendl;
          center->create_file_event(sd, EVENT_WRITABLE, read_handler);
          break;
        }

      lderr(async_msgr->cct) << __func__ << ":" <<__LINE__
        << " delete_file_event(" << sd << ", EVENT_WRITABLE)"
        << dendl;
        center->delete_file_event(sd, EVENT_WRITABLE);
        state = STATE_CONNECTING_WAIT_BANNER;
        break;
      }


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-06-23 15:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0a8a87d5-777c-7e78-0400-cf1978217928@digiware.nl>
2016-06-22 13:47 ` Not matching event states in ./msg/async/AsyncConnection.cc Willem Jan Withagen
2016-06-22 14:36   ` Haomai Wang
2016-06-22 15:25     ` Willem Jan Withagen
2016-06-22 22:09       ` Willem Jan Withagen
2016-06-22 22:16     ` Willem Jan Withagen
2016-06-23  7:22       ` Willem Jan Withagen
2016-06-23  7:44         ` Haomai Wang
2016-06-23  9:40           ` Willem Jan Withagen
2016-06-23 12:28             ` Haomai Wang
2016-06-23 13:16               ` Willem Jan Withagen
2016-06-23 15:16                 ` Willem Jan Withagen
2016-06-19 21:28 Willem Jan Withagen
2016-06-20  2:40 ` Haomai Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.