Subject: Re: Pulling simple syscalls out from the giant lock
To: David Laight <david@l8s.co.uk>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-kern
Date: 06/09/2005 10:02:06
On Thu, 9 Jun 2005, David Laight wrote:
>> Unmapped is a real problem; without this, you could still
>> pp = p->parent;
>> do {
>> qq = pp;
>> ppid = pp->pid;
>> pp = p->parent;
>> } while (pp != qq);
>
> Technically, it could change twice, and the memory could be used for
> something else in between.....
In some other place, using rwlocks was suggested, maybe that would be
useful here to lock out writers, but allow multiple readers.
Dunno if that's still too much overhead then.
- Hubert
--
Genervt von Viren und von Viren versandten Spam-Mails? -> www.NetBSD.de
Fed up from viruses & virus-originated spam mail? -> www.NetBSD.org