Re: [PATCH 3/8] pid.c: Add IDR implementation for alloc_pid and free_pid

2017-07-14 Thread kbuild test robot
Hi Gargi, [auto build test ERROR on v4.12] [also build test ERROR on next-20170714] [cannot apply to linus/master linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 3/8] pid.c: Add IDR implementation for alloc_pid and free_pid

2017-07-14 Thread Julia Lawall
On Fri, 14 Jul 2017, Gargi Sharma wrote: > In pid_alloc function, idr_preload function is used along with > idr_alloc_cyclic. > idr_alloc_cyclic is used instead of idr_alloc because we might want to > reuse the unassigned integers. The rest of the code is same as the previous > alloc_pid, which

[PATCH 3/8] pid.c: Add IDR implementation for alloc_pid and free_pid

2017-07-13 Thread Gargi Sharma
In pid_alloc function, idr_preload function is used along with idr_alloc_cyclic. idr_alloc_cyclic is used instead of idr_alloc because we might want to reuse the unassigned integers. The rest of the code is same as the previous alloc_pid, which puts the pid allocated onto the task list. After the