lkml.org 
[lkml]   [2006]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
>>1.
>>flags are neither atomic nor protected with any lock.
>
>
> flags are atomic as they are a machine word. So they do not
> require a read/modify write so they will either be written
> or not written. Plus this allows write-sharing of the appropriate
> cache line which is very polite (assuming the line is not shared with
> something else)
Eric I'm familiar with SMP, thanks :)
Why do you write all this if you agreed below that have problems with it?

>>2. due to 1) you code is buggy. in this respect do_exit() is not serialized with
>>copy_process().
> Yes. I may need a memory barrier in there. I need to think
> about that a little more.
memory barrier doesn't help. you really need to think about.

>>3. due to the same 1) reason
>> > + kill_pspace_info(SIGKILL, (void *)1, tsk->pspace);
>>can miss a task being forked. Bang!!!
>
> Well the only bad thing that can happen is that I get a process that
> can run and observe pid == 1 has exited. So Bang!! is not too
> painful.
And what about references to pspace->child_reaper which was freed already?

[skipped the flood]

Kirill

-
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: 2006-02-13 10:23    [W:2.303 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site