linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.39-rc6: cdrecord oops
@ 2011-05-04 19:07 Alexey Dobriyan
  2011-05-04 19:32 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2011-05-04 19:07 UTC (permalink / raw)
  To: torvalds; +Cc: akpm, James.Bottomley, linux-scsi, axboe

Got one at the very end of burning session (haven't tried to reproduce yet).
Apparently happened when cdrecord tried to open the door.

	__lock_acquire
	lock_acquire
	_raw_spin_lock_irq
	blk_get_request
	scsi_execute
	scsi_set_medium_removal
	sr_lock_door
	cdrom_release
	sr_block_release
	__blk_dev_put
	blkdev_put
	blkdev_close
	fput
	filp_close
	sys_close

comm: cdrecord
RAX was small number like 0x46(?)
RBX 6b6b6b6b6b6b6b83
RDI 6b6b6b6b6b6b6b83

	scsi 8:0:0:0: CD-ROM            Optiarc  DVD RW AD-7700S 1.03 PQ: 0 ANSI: 0
	sr0: scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray

This model is USB device.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.39-rc6: cdrecord oops
  2011-05-04 19:07 2.6.39-rc6: cdrecord oops Alexey Dobriyan
@ 2011-05-04 19:32 ` Linus Torvalds
  2011-05-04 19:45   ` Alexey Dobriyan
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2011-05-04 19:32 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: akpm, James.Bottomley, linux-scsi, axboe

On Wed, May 4, 2011 at 12:07 PM, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> Got one at the very end of burning session (haven't tried to reproduce yet).
> Apparently happened when cdrecord tried to open the door.
>
>        __lock_acquire
>        lock_acquire
>        _raw_spin_lock_irq
>        blk_get_request

Hmm. That would be the

  spin_lock_irq(q->queue_lock);

in there, I'm not seeing any other spinlock.

>        scsi_execute
>        scsi_set_medium_removal
>        sr_lock_door
>        cdrom_release
>        sr_block_release
>        __blk_dev_put
>        blkdev_put
>        blkdev_close
>        fput
>        filp_close
>        sys_close
>
> comm: cdrecord
> RAX was small number like 0x46(?)
> RBX 6b6b6b6b6b6b6b83
> RDI 6b6b6b6b6b6b6b83

And that implies that 'q' has been free'd before it's used, and you
have SLUB-debugging turned on.

> This model is USB device.

Hmm. It looks a bit odd that cdrom_release() does the ->release call
before it does the ->tray_move thing, but I don't think that's it.

Jens/James: What's the sequence to blk_cleanup_queue() for a SCSI
CD-ROM? It really does look like we're releasing the queue before
we're done with it.

                      Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.39-rc6: cdrecord oops
  2011-05-04 19:32 ` Linus Torvalds
@ 2011-05-04 19:45   ` Alexey Dobriyan
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2011-05-04 19:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: akpm, James.Bottomley, linux-scsi, axboe

On Wed, May 04, 2011 at 12:32:50PM -0700, Linus Torvalds wrote:
> On Wed, May 4, 2011 at 12:07 PM, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> > Got one at the very end of burning session (haven't tried to reproduce yet).
> > Apparently happened when cdrecord tried to open the door.
> >
> >        __lock_acquire
> >        lock_acquire
> >        _raw_spin_lock_irq
> >        blk_get_request
> 
> Hmm. That would be the
> 
>   spin_lock_irq(q->queue_lock);
> 
> in there, I'm not seeing any other spinlock.
> 
> >        scsi_execute
> >        scsi_set_medium_removal
> >        sr_lock_door
> >        cdrom_release
> >        sr_block_release
> >        __blk_dev_put
> >        blkdev_put
> >        blkdev_close
> >        fput
> >        filp_close
> >        sys_close
> >
> > comm: cdrecord
> > RAX was small number like 0x46(?)
> > RBX 6b6b6b6b6b6b6b83
> > RDI 6b6b6b6b6b6b6b83
> 
> And that implies that 'q' has been free'd before it's used, and you
> have SLUB-debugging turned on.
> 
> > This model is USB device.
> 
> Hmm. It looks a bit odd that cdrom_release() does the ->release call
> before it does the ->tray_move thing, but I don't think that's it.
> 
> Jens/James: What's the sequence to blk_cleanup_queue() for a SCSI
> CD-ROM? It really does look like we're releasing the queue before
> we're done with it.

Second time, burning finished to the end successfully.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-04 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 19:07 2.6.39-rc6: cdrecord oops Alexey Dobriyan
2011-05-04 19:32 ` Linus Torvalds
2011-05-04 19:45   ` Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).