[Devel] [RFC][PATCH] Add child reaper to struct pspace

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

 



Cedric Le Goater wrote:
> Sukadev Bhattiprolu wrote:
> 
> <snip>
> 
>>@@ -620,8 +620,8 @@ static int de_thread(struct task_struct 
>> 	 * Reparenting needs write_lock on tasklist_lock,
>> 	 * so it is safe to do it under read_lock.
>> 	 */
>>-	if (unlikely(current->group_leader == child_reaper))
>>-		child_reaper = current;
>>+	if (unlikely(current->group->leader == current->pspace->child_reaper)
>>+		current->pspace->child_reaper = current;
>> 
>> 	zap_other_threads(current);
>> 	read_unlock(&tasklist_lock);
> 
> 
> I'm unsure about this one ?
AFAICS, this one is for multithreaded init?
looks ok, imho.

Thanks,
Kirill


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux