[Top] [All Lists]

Re: config_alldevs_lock is evil

Subject: Re: config_alldevs_lock is evil
From: Masao Uebayashi
Date: Tue, 12 Jan 2010 03:58:11 UTC
Newsgroups: fa.netbsd.tech.kern
> > I'm not sure it is necessary to do device addition/removal at
> > that high priority at all -- either it is done by normal threads
> > which can wait, or the bus already needs to deal with unexpected
> > removals in some way (like USB), and uses a helper thread.

Fully agreed.

> How would you suggest to synchronize access to the device_t array in a
> cfdriver_t?  I could use a mutex per cfdriver_t, just for example, but
> maybe you have in mind a better way.

I think mutex per-cfdriver is worth having, considering device_lookup_private()
is called for every single system call now...


Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635

<Prev in Thread] Current Thread [Next in Thread>