lkml.org 
[lkml]   [2017]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/2] pid: Replace pid bitmap implementation with IDR API
> -		task_active_pid_ns(current)->last_pid);
> + task_active_pid_ns(current)->idr.idr_next-1);

I think we want a well documented helper for this pattern instead
of poking into the internals.

Also is last - 1 always the correct answer? Even with idr_alloc_cyclic
we could wrap around, couldn't we?

\
 
 \ /
  Last update: 2017-10-01 11:16    [W:0.235 / U:2.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site