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.



_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Reply via email to