Subject: Re: Pulling simple syscalls out from the giant lock
To: None <tls@rek.tjls.com>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-kern
Date: 06/07/2005 13:48:20
Thor Lancelot Simon <tls@rek.tjls.com> writes:
> The vnode locks needed for getcwd() certainly _ought_ to be MP-safe,
> no? What's the point of having them there if they aren't?
They ought to be, I suppose, but I'm not going to issue a warranty on
them. Does anyone claim to understand our filesystem locking in any detail?
> The other one that comes immediately to mind, though, is gettimeofday().
> Oh, and getppid() and getrlimit(), maybe.
gettimeofday() looks like it ought to be okay, since it has its own
little lock. getppid() needs to be protected against the parent dying
and reparenting it to init.
- Nathan