tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: config_alldevs_lock is evil

> > 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

Home | Main Index | Thread Index | Old Index