Re: [uml-devel] [PATCH 1/6] UML - Console locking fixes

2007-01-04 Thread Jeff Dike
On Wed, Jan 03, 2007 at 04:07:34PM +0100, Blaisorblade wrote: > > + spin_lock(&line->count_lock); > > + if(!line->valid) > > + goto out_unlock; > > + > > + err = 0; > > + if(tty->count > 1) > > + goto out_unlock; > > > > - /* The IRQ which takes this lock is not yet en

Re: [uml-devel] [PATCH 1/6] UML - Console locking fixes

2007-01-03 Thread Blaisorblade
On Saturday 30 December 2006 00:41, Jeff Dike wrote: > Clean up the console driver locking. There are various problems here, > including sleeping under a spinlock and spinlock recursion, some of > which are fixed here. This patch deals with the locking involved with > opens and closes. The probl