Re: [PATCH v2 2/2] powerpc: Do not assign thread.tidr if already assigned

2017-11-26 Thread Andrew Donnellan
On 24/11/17 19:33, Vaibhav Jain wrote: If set_thread_tidr() is called twice for same task_struct then it will allocate a new tidr value to it leaving the previous value still dangling in the vas_thread_ida table. To fix this the patch changes set_thread_tidr() to check if a tidr value is alrea

[PATCH v2 2/2] powerpc: Do not assign thread.tidr if already assigned

2017-11-24 Thread Vaibhav Jain
If set_thread_tidr() is called twice for same task_struct then it will allocate a new tidr value to it leaving the previous value still dangling in the vas_thread_ida table. To fix this the patch changes set_thread_tidr() to check if a tidr value is already assigned to the task_struct and if yes t