All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: Re: [Patch] CLD: fix hang in ncld_sess_open if session open fails
Date: Wed, 14 Apr 2010 00:01:37 -0400	[thread overview]
Message-ID: <4BC53E21.2050600@garzik.org> (raw)
In-Reply-To: <20100413182214.28c6b565@redhat.com>

On 04/13/2010 08:22 PM, Pete Zaitcev wrote:
> The problem turned out to be two-fold, with the same symptom.
>
> Firstly, we use is_open to signal that the caller thread may
> proceed, but this is incorrect in case the thread open fails:
> we still want the caller thread to proceed and deliver the
> error indicator from ncld_sess_open to the application.
> So, let's split is_up from the condition variable mechanism.
> It continues to mean that the session is open and up, and
> open_done is introduced for the waiting mechanism.
>
> In addition, we forgot to take a mutex around a call into
> the cldc layer. It manifested itself in timers not firing,
> and so we would hang waiting for an answer from CLD server.
>
> Signed-off-by: Pete Zaitcev<zaitcev@redhat.com>
>
> ---
>   include/ncld.h |    1 +
>   lib/cldc.c     |   15 +++++++++++++--
>   2 files changed, 14 insertions(+), 2 deletions(-)
>
> This, I think, can go either before or after the e2e verbose.
> My previous patch added a HAIL_VERBOSE in a strategic location,
> but it's not really necessary and I took it out.

applied


      reply	other threads:[~2010-04-14  4:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14  0:22 [Patch] CLD: fix hang in ncld_sess_open if session open fails Pete Zaitcev
2010-04-14  4:01 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BC53E21.2050600@garzik.org \
    --to=jeff@garzik.org \
    --cc=hail-devel@vger.kernel.org \
    --cc=zaitcev@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.