[lkml]   [2018]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v5 3/7] powerpc: use task_pid_nr() for TID allocation
On 11/05/18 16:12, Alastair D'Silva wrote:
> From: Alastair D'Silva <>
> The current implementation of TID allocation, using a global IDR, may
> result in an errant process starving the system of available TIDs.
> Instead, use task_pid_nr(), as mentioned by the original author. The
> scenario described which prevented it's use is not applicable, as
> set_thread_tidr can only be called after the task struct has been
> populated.
> In the unlikely event that 2 threads share the TID and are waiting,
> all potential outcomes have been determined safe.
> Signed-off-by: Alastair D'Silva <>

Thanks for the clarifying comment. The diff is painful to read but I
think it makes sense :)

Reviewed-by: Andrew Donnellan <>

Andrew Donnellan OzLabs, ADL Canberra IBM Australia Limited

 \ /
  Last update: 2018-05-31 06:31    [W:0.212 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site