From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: adeos-main <adeos-main@gna.org>
Subject: Re: [Adeos-main] [PATCH 1/2] Fix logic in __ipipe_get_task_info
Date: Sun, 27 May 2007 10:55:08 +0200 [thread overview]
Message-ID: <1180256109.5015.2.camel@domain.hid> (raw)
In-Reply-To: <4656E8E9.5060403@domain.hid>
On Fri, 2007-05-25 at 15:47 +0200, Jan Kiszka wrote:
> That was obviously wrong, causing double acquisitions.
>
Merged, thanks.
> Jan
> plain text document attachment (fix-__ipipe_get_task_info.patch)
> ---
> kernel/ipipe/tracer.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> Index: linux-2.6.20/kernel/ipipe/tracer.c
> ===================================================================
> --- linux-2.6.20.orig/kernel/ipipe/tracer.c
> +++ linux-2.6.20/kernel/ipipe/tracer.c
> @@ -572,9 +572,10 @@ __ipipe_get_task_info(char *task_info, s
> int i;
> int locked = 1;
>
> - if (trylock && !read_trylock(&tasklist_lock))
> - locked = 0;
> - else
> + if (trylock) {
> + if (!read_trylock(&tasklist_lock))
> + locked = 0;
> + } else
> read_lock(&tasklist_lock);
>
> if (locked)
--
Philippe.
prev parent reply other threads:[~2007-05-27 8:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 13:47 [Adeos-main] [PATCH 1/2] Fix logic in __ipipe_get_task_info Jan Kiszka
2007-05-27 8:55 ` Philippe Gerum [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=1180256109.5015.2.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=adeos-main@gna.org \
--cc=jan.kiszka@domain.hid \
/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.