Move the signal into the closed method, before we deallocate the
MetaSession, so that other callers catch it too.
Signed-off-by: Sage Weil <sage@inktank.com>
{
s->state = MetaSession::STATE_CLOSED;
messenger->mark_down(s->con);
+ signal_cond_list(s->waiting_for_open);
mount_cond.Signal();
remove_session_caps(s);
kick_requests(s, true);
case CEPH_SESSION_CLOSE:
_closed_mds_session(session);
- signal_cond_list(session->waiting_for_open);
break;
case CEPH_SESSION_RENEWCAPS: