From: Laszlo Ersek <lersek@redhat.com>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3] semaphore: fix a hangup problem under load on NetBSD hosts.
Date: Wed, 03 Jul 2013 11:41:22 +0200 [thread overview]
Message-ID: <51D3F1C2.5050609@redhat.com> (raw)
In-Reply-To: <1372841894-10634-1-git-send-email-tsutsui@ceres.dti.ne.jp>
On 07/03/13 10:58, Izumi Tsutsui wrote:
> Fix following bugs in "fallback implementation of counting semaphores
> with mutex+condvar" added in c166cb72f1676855816340666c3b618beef4b976:
> - waiting threads are not restarted properly if more than one threads
> are waiting unblock signals in qemu_sem_timedwait()
> - possible missing pthread_cond_signal(3) calls when waiting threads
> are returned by ETIMEDOUT
> - fix an uninitialized variable
> The problem is analyzed by and fix is provided by Noriyuki Soda.
>
> Also put additional cleanup suggested by Laszlo Ersek:
> - make QemuSemaphore.count unsigned (it won't be negative)
> - check a return value of in pthread_cond_wait() in qemu_sem_wait()
>
> Signed-off-by: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
> ---
>
> v3:
> - fix a missed assignment and actually check a retval of pthread_cond_wait()
Compared v3 against v2.
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Laszlo
next prev parent reply other threads:[~2013-07-03 9:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 8:58 [Qemu-devel] [PATCH v3] semaphore: fix a hangup problem under load on NetBSD hosts Izumi Tsutsui
2013-07-03 9:41 ` Laszlo Ersek [this message]
2013-08-01 3:24 ` Brad
2013-08-01 22:33 ` Paolo Bonzini
2013-08-05 16:22 ` [Qemu-devel] PING for-1.6 " Paolo Bonzini
2013-08-14 16:29 ` [Qemu-devel] " Anthony Liguori
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=51D3F1C2.5050609@redhat.com \
--to=lersek@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=tsutsui@ceres.dti.ne.jp \
/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.