Re: Locking changes to the driver-model core

2005-03-18 Thread Greg KH
On Wed, Mar 16, 2005 at 03:58:30PM -0500, Alan Stern wrote: > Greg KH has said that he would like to remove the bus subsystem rwsem from > the driver model. Here's a proposal for a way to accomplish that. The > proposal is incomplete and requires changing the driver-model API a > little; I'd l

Re: Locking changes to the driver-model core

2005-03-16 Thread Dmitry Torokhov
On Wed, 16 Mar 2005 16:10:11 -0500 (EST), linux-os <[EMAIL PROTECTED]> wrote: > > Thought experiment: > Suppose you had a kernel-thread whos duty it was to handle the > shutdown and restarting of devices on such busses. Since it > is the only thing that would touch such code, wouldn't things > be

Re: Locking changes to the driver-model core

2005-03-16 Thread Alan Stern
On Wed, 16 Mar 2005, linux-os wrote: > Thought experiment: > Suppose you had a kernel-thread whos duty it was to handle the > shutdown and restarting of devices on such busses. Since it > is the only thing that would touch such code, wouldn't things > be a lot simpler and not subject to deadlocks?

Re: Locking changes to the driver-model core

2005-03-16 Thread linux-os
Thought experiment: Suppose you had a kernel-thread whos duty it was to handle the shutdown and restarting of devices on such busses. Since it is the only thing that would touch such code, wouldn't things be a lot simpler and not subject to deadlocks? Code calls something that puts the stuff the ke

Locking changes to the driver-model core

2005-03-16 Thread Alan Stern
Greg KH has said that he would like to remove the bus subsystem rwsem from the driver model. Here's a proposal for a way to accomplish that. The proposal is incomplete and requires changing the driver-model API a little; I'd like to hear people's reactions and get suggestions on ways to impro