lkml.org 
[lkml]   [1997]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: fork: out of memory
Date
>	if (newfd >= files->cur_allocated) {
> if (newfd > files->cur_allocated) {
> /* Oops. Someone else must already be updating
> this, Not now baby.... I have a headache */
> return -ENOMEM;
> }

Ok race #1 for SMP. If you put the lock around it all then you still have to
worry about the SMP case of


if(blah->files[n]!=NULL && /* other CPU swaps here *.
blah->files[n]...)

theres a lot of those in the kernel and some are quite time critical ones
(having said that having 300K more RAM is for most users going to make it
far faster). All of these cases need to be wrapped up where they are not
already


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:2.292 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site