Re: [PATCH] Fixes for RCU handling of task_struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ingo Molnar <[email protected]> wrote:
>
> @@ -1433,7 +1485,16 @@ send_group_sigqueue(int sig, struct sigq
>   	int ret = 0;
>   
>   	BUG_ON(!(q->flags & SIGQUEUE_PREALLOC));
>  -	read_lock(&tasklist_lock);
>  +
>  +	while(!read_trylock(&tasklist_lock)) {
>  +		if (!p->sighand)
>  +			return -1;
>  +		cpu_relax();
>  +	}

This looks kind of ugly and quite unobvious.

What's going on there?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux