From: "Emilio G. Cota" <cota@braap.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, laurent@vivier.eu
Subject: Re: [Qemu-arm] [PATCH 2/2] linux-user: Use pthread_rwlock_t for mmap_rd/wrlock
Date: Fri, 22 Jun 2018 17:13:41 -0400 [thread overview]
Message-ID: <20180622211341.GB11346@flamenco> (raw)
In-Reply-To: <20180621173635.21537-3-richard.henderson@linaro.org>
On Thu, Jun 21, 2018 at 07:36:35 -1000, Richard Henderson wrote:
> void mmap_wrlock(void)
> {
> - mmap_lock_internal();
> + if (likely(mmap_lock_held == 0)) {
> + pthread_rwlock_rdlock(&mmap_rwlock);
s/rwlock_rdlock/rwlock_wrlock/
E.
WARNING: multiple messages have this Message-ID (diff)
From: "Emilio G. Cota" <cota@braap.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org, laurent@vivier.eu, qemu-arm@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] linux-user: Use pthread_rwlock_t for mmap_rd/wrlock
Date: Fri, 22 Jun 2018 17:13:41 -0400 [thread overview]
Message-ID: <20180622211341.GB11346@flamenco> (raw)
In-Reply-To: <20180621173635.21537-3-richard.henderson@linaro.org>
On Thu, Jun 21, 2018 at 07:36:35 -1000, Richard Henderson wrote:
> void mmap_wrlock(void)
> {
> - mmap_lock_internal();
> + if (likely(mmap_lock_held == 0)) {
> + pthread_rwlock_rdlock(&mmap_rwlock);
s/rwlock_rdlock/rwlock_wrlock/
E.
next prev parent reply other threads:[~2018-06-22 21:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 17:36 [Qemu-devel] [PATCH 0/2] linux-user: Change mmap_lock to rwlock Richard Henderson
2018-06-21 17:36 ` Richard Henderson
2018-06-21 17:36 ` [Qemu-arm] [PATCH 1/2] exec: Split mmap_lock to mmap_rdlock/mmap_wrlock Richard Henderson
2018-06-21 17:36 ` [Qemu-devel] " Richard Henderson
2018-06-21 17:36 ` [Qemu-arm] [PATCH 2/2] linux-user: Use pthread_rwlock_t for mmap_rd/wrlock Richard Henderson
2018-06-21 17:36 ` [Qemu-devel] " Richard Henderson
2018-06-22 21:13 ` Emilio G. Cota [this message]
2018-06-22 21:13 ` Emilio G. Cota
2018-06-22 21:12 ` [Qemu-arm] [PATCH 0/2] linux-user: Change mmap_lock to rwlock Emilio G. Cota
2018-06-22 21:12 ` [Qemu-devel] " Emilio G. Cota
2018-06-23 15:25 ` [Qemu-arm] " Richard Henderson
2018-06-23 15:25 ` [Qemu-devel] " Richard Henderson
2018-06-23 18:20 ` [Qemu-arm] " Emilio G. Cota
2018-06-23 18:20 ` [Qemu-devel] " Emilio G. Cota
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=20180622211341.GB11346@flamenco \
--to=cota@braap.org \
--cc=laurent@vivier.eu \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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.