Re: fork: out of memory

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 25 Nov 1997 11:53:22 +0000 (GMT)


> These extra allocations would go to get_unused_fd() in fs/open.c.
> I didn't find any other place (but I just started working on it, it will
> take some time).

The socket stuff allocates fd's. Im not sure it goes via fs/open.c properly
(yes it should)

> Some preliminary searching showed me that I will have to modify at
> least 50 files!!! No big things, but absolutely neccessary if you ask
> me (unless I have problems in logic :)).

That is a good sign that its time someone took the functions that
reference it directly and replaced them with one or two inline functions

> When you say "atomically" do you mean "in one place" or with

I mean "in a way that no other task on any processor can have accessed it
during the change"

Alan