Re: [regression] CD-DA delay needed after insertion (http://bugzilla.kernel.org/show_bug.cgi?id=10974)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Tuesday, July 1, 2008 - 8:18 am

On Mon, 2008-06-30 at 10:51 -0500, James Bottomley wrote:

OK ... I think I finally found the problem.  Our DVD drives obviously
have a slight difference in the way they handle tray close.  Mine still
returns tray open for a while after the close operation has been
initiated.  To see the behaviour you need it to return not ready; in
process of becoming ready.  The zero return from scsi_test_unit_ready()
actually causes sr_media_changed() incorrectly to return zero.  But,
before it does, it tries to update the CD information and capacity.
This is where the delay occurs ... as long as the drive reports in
process of becoming ready, sr_cd_check() will wait 2s and retry until it
becomes ready and it can get the CD information.

The problem is I don't think the new behaviour is a regression.
cdparanoia requested O_NONBLOCK ... it's a bit counter to this if we
wait for the drive to become ready.  cdparanoia doesn't care that we get
the correct CD parameters on the open since it's using SG_IO to
manipulate the device.  So, I think the bug is actually in cdparanoia.
If it requests O_NONBLOCK, it's asking for full status immediately and
is supposed to be able to cope with the returns (including knowing to
retry the NOT_READY ones).

James


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[regression] CD-DA delay needed after insertion, Geert Uytterhoeven, (Fri Jun 13, 4:57 am)
Re: [regression] CD-DA delay needed after insertion, Boaz Harrosh, (Sun Jun 15, 5:46 am)
Re: [regression] CD-DA delay needed after insertion, James Bottomley, (Sun Jun 15, 7:33 am)
Re: [regression] CD-DA delay needed after insertion, James Bottomley, (Sun Jun 15, 7:39 am)
Re: [regression] CD-DA delay needed after insertion, Geert Uytterhoeven, (Mon Jun 16, 8:05 am)
Re: [regression] CD-DA delay needed after insertion, James Bottomley, (Mon Jun 16, 1:30 pm)
Re: [regression] CD-DA delay needed after insertion, Geert Uytterhoeven, (Tue Jun 17, 6:31 am)
Re: [regression] CD-DA delay needed after insertion, Chuck Ebbert, (Tue Jun 17, 3:56 pm)
Re: [regression] CD-DA delay needed after insertion, James Bottomley, (Tue Jun 17, 3:59 pm)
Re: [regression] CD-DA delay needed after insertion, James Bottomley, (Wed Jun 18, 1:40 pm)
Re: [regression] CD-DA delay needed after insertion, Geert Uytterhoeven, (Thu Jun 19, 2:34 am)
Re: [regression] CD-DA delay needed after insertion, James Bottomley, (Fri Jun 27, 3:27 pm)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Mon Jun 30, 2:25 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., James Bottomley, (Tue Jul 1, 8:18 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Wed Jul 30, 6:06 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Wed Sep 17, 8:05 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Tue Sep 30, 5:33 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Tue Sep 30, 6:37 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Tue Sep 30, 7:51 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Tue Sep 30, 8:21 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Monty Montgomery, (Tue Sep 30, 10:32 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Monty Montgomery, (Tue Sep 30, 11:10 am)
Re: [regression] CD-DA delay needed after insertion (http: ..., Geert Uytterhoeven, (Wed Oct 1, 12:51 am)