lkml.org 
[lkml]   [2005]   [Nov]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 14 Nov 2005 17:51:40 -0800
FromPaul Jackson <>
SubjectRe: [RFC] [PATCH 00/13] Introduce task_pid api
Serge wrote:
> But when one of the
> processes looks for process 10, task_vpid_to_pid(current, 10) will return
> the real pid for the vpid 10 in current's pidspace.

So a "kill -1 10" will mean different things, depending on the pidspace
that the kill is running in.  And pid's passed about between user
tasks as if they were usable system-wide are now aliased by their
invisible pidspace.

Yuck.  Such virtualizations usually have a much harder time addressing
the last 10% of situations than they did the easy 90%.

How about instead having a way to put the pid's of checkpointed tasks
in deep freeze, saving them for reuse when the task restarts?

System calls that operate on pid values could error out with some
new errno, -EFROZEN or some such.

This would seem far less invasive.  Not just less invasive of the code,
but more importantly, not introducing some never entirely realizable
semantic change to the scope of pids.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-15 02:55    [from the cache]
©2003-2008