is_session_dead
if (is_session_dead(ses))
if (atomic_dec_and_test(&ses->se_ref) && is_session_dead(ses))