tech-kern archive

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

Re: hang in tstile with Samsung Galaxy



On Fri, Apr 09, 2010 at 03:03:06PM +0200, Christoph Egger wrote:
> On 09.04.10 14:55, Manuel Bouyer wrote:
> > On Fri, Apr 09, 2010 at 11:36:44AM +0200, Christoph Egger wrote:
> >> sleepq_block+0xcd
> >> turnstile_block+0x2dd
> >> mutex_enter+0x26b
> > 
> > Its it waiting on sd->sc_dk.dk_openlock ?
> > What does sdopen+0x7a point to ?
> 
> It points to sys/dev/scsipi/sd.c:409
> 
>     if (sd->sc_dk.dk_nwedges != 0 && part != RAW_PART) {
> 
> Right above that line is
> 
>     mutex_enter(&sd->sc_dk.dk_openlock);
> 
> so yes, it actually seems to wait for this lock.
> 
> > 
> >> sdopen+0x7a
> >> cdev_open+0x63
> >> spec_open+0x169
> >> VOP_OPEN+0x62
> >> vn_open+0x1fc
> >> sys_open+0xd7
> >> syscall+0xaa
> >>
> 
> 
> Christoph
> 

The address of that lock will be in the wchan for the process hung in
tstile.  Do 'show lock ...' on it in DDB and it will tell you who holds
it (LWP address to pass to t/a command) and where it is held (pass ot
x/I do get location of the lock acquire).



Home | Main Index | Thread Index | Old Index