public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
@ 2009-07-02 13:23 Tarkan Erimer
  2009-07-02 20:07 ` Andrew Morton
  0 siblings, 1 reply; 16+ messages in thread
From: Tarkan Erimer @ 2009-07-02 13:23 UTC (permalink / raw)
  To: LKML

Hi,

I just compiled 2.6.31-rc1-git9 to give it a try. The problem I 
encountered with this release is that it cannot recognize empty DVD 
(probably CD will be the same. But, I didn't try it.) media with K3b. 
I'm having the below error messages in dmesg. Also, I tried with several 
new empty DVD medias. So, I'm sure that it's not a faulty DVD media. The 
same media burns fine with K3b under <= 2.6.31-rc1-git6.


[ 4526.724245] cdrom: This disc doesn't have any tracks I recognize!
[ 4526.748278] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[ 4526.748285] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 4526.748292] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 4526.748300] end_request: I/O error, dev sr0, sector 0
[ 4526.748307] Buffer I/O error on device sr0, logical block 0
[ 4526.750295] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[ 4526.750302] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 4526.750308] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 4526.750316] end_request: I/O error, dev sr0, sector 0
[ 4526.750321] Buffer I/O error on device sr0, logical block 0
[ 4586.738212] cdrom: This disc doesn't have any tracks I recognize!
[ 4586.753644] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[ 4586.753652] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 4586.753659] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 4586.753668] end_request: I/O error, dev sr0, sector 0
[ 4586.753673] Buffer I/O error on device sr0, logical block 0
[ 4586.757373] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[ 4586.757379] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 4586.757384] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 4586.757391] end_request: I/O error, dev sr0, sector 0
[ 4586.757395] Buffer I/O error on device sr0, logical block 0


Tarkan

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-02 13:23 [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media Tarkan Erimer
@ 2009-07-02 20:07 ` Andrew Morton
  2009-07-08 13:09   ` Maciej Rutecki
  0 siblings, 1 reply; 16+ messages in thread
From: Andrew Morton @ 2009-07-02 20:07 UTC (permalink / raw)
  To: Tarkan Erimer; +Cc: linux-kernel, linux-scsi

(cc linux-scsi)

On Thu, 02 Jul 2009 16:23:00 +0300
Tarkan Erimer <tarkan.erimer@turknet.net.tr> wrote:

> Hi,
> 
> I just compiled 2.6.31-rc1-git9 to give it a try. The problem I 
> encountered with this release is that it cannot recognize empty DVD 
> (probably CD will be the same. But, I didn't try it.) media with K3b. 
> I'm having the below error messages in dmesg. Also, I tried with several 
> new empty DVD medias. So, I'm sure that it's not a faulty DVD media. The 
> same media burns fine with K3b under <= 2.6.31-rc1-git6.
> 
> 
> [ 4526.724245] cdrom: This disc doesn't have any tracks I recognize!
> [ 4526.748278] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
> driverbyte=DRIVER_SENSE
> [ 4526.748285] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
> [ 4526.748292] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
> [ 4526.748300] end_request: I/O error, dev sr0, sector 0
> [ 4526.748307] Buffer I/O error on device sr0, logical block 0
> [ 4526.750295] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
> driverbyte=DRIVER_SENSE
> [ 4526.750302] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
> [ 4526.750308] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
> [ 4526.750316] end_request: I/O error, dev sr0, sector 0
> [ 4526.750321] Buffer I/O error on device sr0, logical block 0
> [ 4586.738212] cdrom: This disc doesn't have any tracks I recognize!
> [ 4586.753644] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
> driverbyte=DRIVER_SENSE
> [ 4586.753652] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
> [ 4586.753659] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
> [ 4586.753668] end_request: I/O error, dev sr0, sector 0
> [ 4586.753673] Buffer I/O error on device sr0, logical block 0
> [ 4586.757373] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
> driverbyte=DRIVER_SENSE
> [ 4586.757379] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
> [ 4586.757384] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
> [ 4586.757391] end_request: I/O error, dev sr0, sector 0
> [ 4586.757395] Buffer I/O error on device sr0, logical block 0

There are no recent changes to cdrom.c.  Maybe it's due to a scsi change?

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-02 20:07 ` Andrew Morton
@ 2009-07-08 13:09   ` Maciej Rutecki
  2009-07-08 14:27     ` James Bottomley
  0 siblings, 1 reply; 16+ messages in thread
From: Maciej Rutecki @ 2009-07-08 13:09 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Tarkan Erimer, linux-kernel, linux-scsi

Similar issue on 2 machines. 2.6.31-rc1-git3 works ok. 2.6.31-rc2
cannot recognize *any* DVD media with K3b. No messages in dmesg or
syslog.

Unfortunately I can't try bisection, because I don't have more time
(work). I try do it at the end of week.

-- 
Maciej Rutecki
http://www.maciek.unixy.pl

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 13:09   ` Maciej Rutecki
@ 2009-07-08 14:27     ` James Bottomley
  2009-07-08 16:06       ` Daniel Walker
  2009-07-08 22:52       ` Martin K. Petersen
  0 siblings, 2 replies; 16+ messages in thread
From: James Bottomley @ 2009-07-08 14:27 UTC (permalink / raw)
  To: Maciej Rutecki; +Cc: Andrew Morton, Tarkan Erimer, linux-kernel, linux-scsi

On Wed, 2009-07-08 at 15:09 +0200, Maciej Rutecki wrote:
> Similar issue on 2 machines. 2.6.31-rc1-git3 works ok. 2.6.31-rc2
> cannot recognize *any* DVD media with K3b. No messages in dmesg or
> syslog.
> 
> Unfortunately I can't try bisection, because I don't have more time
> (work). I try do it at the end of week.

Also were there any tools upgrades around this?  The messages:

> [ 4526.750295] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK 
> driverbyte=DRIVER_SENSE
> [ 4526.750302] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
> [ 4526.750308] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
> [ 4526.750316] end_request: I/O error, dev sr0, sector 0
> [ 4526.750321] Buffer I/O error on device sr0, logical block 0

Clearly imply the errors are coming from the device:  The sense code is
generated by it.  So this means that either the DVD has been put into
some type of wrong mode or something in sr is sending the wrong command.

You might also try this patch from martin petersen:  it will print out
the actual command that's causing the problems ... that might give a
clue.

James

---

Subject: [PATCH] SCSI: Print failed commands
From:	"Martin K. Petersen" <martin.petersen@oracle.com>

When a request fails we print the sense data but not the actual command
that failed.  Add a printout of the operation + CDB for failed commands.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

---

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 30f3275..79ea5be 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -896,6 +896,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
 			scsi_print_result(cmd);
 			if (driver_byte(result) & DRIVER_SENSE)
 				scsi_print_sense("", cmd);
+			scsi_print_command(cmd);
 		}
 		blk_end_request_all(req, -EIO);
 		scsi_next_command(cmd);




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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 14:27     ` James Bottomley
@ 2009-07-08 16:06       ` Daniel Walker
  2009-07-08 16:44         ` James Bottomley
  2009-07-08 22:52       ` Martin K. Petersen
  1 sibling, 1 reply; 16+ messages in thread
From: Daniel Walker @ 2009-07-08 16:06 UTC (permalink / raw)
  To: James Bottomley
  Cc: Maciej Rutecki, Andrew Morton, Tarkan Erimer, Jens Axboe,
	linux-kernel, linux-scsi

On Wed, 2009-07-08 at 09:27 -0500, James Bottomley wrote:
> 
> You might also try this patch from martin petersen:  it will print out
> the actual command that's causing the problems ... that might give a
> clue.
> 
> James

On the bugzilla entry ,

http://bugzilla.kernel.org/show_bug.cgi?id=13727

Thomas Meyer indicated it was (possibly) the following commit,

018e0446890661504783f92388ecce7138c1566d

I added Jens to the CC ..

Daniel


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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 16:06       ` Daniel Walker
@ 2009-07-08 16:44         ` James Bottomley
  2009-07-08 16:57           ` Jens Axboe
  2009-07-08 18:22           ` Maciej Rutecki
  0 siblings, 2 replies; 16+ messages in thread
From: James Bottomley @ 2009-07-08 16:44 UTC (permalink / raw)
  To: Daniel Walker
  Cc: Maciej Rutecki, Andrew Morton, Tarkan Erimer, Jens Axboe,
	linux-kernel, linux-scsi

On Wed, 2009-07-08 at 09:06 -0700, Daniel Walker wrote:
> On Wed, 2009-07-08 at 09:27 -0500, James Bottomley wrote:
> > 
> > You might also try this patch from martin petersen:  it will print out
> > the actual command that's causing the problems ... that might give a
> > clue.
> > 
> > James
> 
> On the bugzilla entry ,
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=13727
> 
> Thomas Meyer indicated it was (possibly) the following commit,
> 
> 018e0446890661504783f92388ecce7138c1566d
> 
> I added Jens to the CC ..

So thats:

commit 018e0446890661504783f92388ecce7138c1566d
Author: Jens Axboe <jens.axboe@oracle.com>
Date:   Fri Jun 26 16:27:10 2009 +0200

    block: get rid of queue-private command filter

What this tends to suggest is that the command filter was blocking some
type of command sent from user space which is causing the problem, and
now we're letting it through.  Restoring the command filter will work
around the problem, but the root cause should be finding and fixing
whatever is issuing the commands in the first place.

James



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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 16:44         ` James Bottomley
@ 2009-07-08 16:57           ` Jens Axboe
  2009-07-08 23:49             ` FUJITA Tomonori
  2009-07-08 18:22           ` Maciej Rutecki
  1 sibling, 1 reply; 16+ messages in thread
From: Jens Axboe @ 2009-07-08 16:57 UTC (permalink / raw)
  To: James Bottomley
  Cc: Daniel Walker, Maciej Rutecki, Andrew Morton, Tarkan Erimer,
	linux-kernel, linux-scsi

On Wed, Jul 08 2009, James Bottomley wrote:
> On Wed, 2009-07-08 at 09:06 -0700, Daniel Walker wrote:
> > On Wed, 2009-07-08 at 09:27 -0500, James Bottomley wrote:
> > > 
> > > You might also try this patch from martin petersen:  it will print out
> > > the actual command that's causing the problems ... that might give a
> > > clue.
> > > 
> > > James
> > 
> > On the bugzilla entry ,
> > 
> > http://bugzilla.kernel.org/show_bug.cgi?id=13727
> > 
> > Thomas Meyer indicated it was (possibly) the following commit,
> > 
> > 018e0446890661504783f92388ecce7138c1566d
> > 
> > I added Jens to the CC ..
> 
> So thats:
> 
> commit 018e0446890661504783f92388ecce7138c1566d
> Author: Jens Axboe <jens.axboe@oracle.com>
> Date:   Fri Jun 26 16:27:10 2009 +0200
> 
>     block: get rid of queue-private command filter
> 
> What this tends to suggest is that the command filter was blocking some
> type of command sent from user space which is causing the problem, and
> now we're letting it through.  Restoring the command filter will work
> around the problem, but the root cause should be finding and fixing
> whatever is issuing the commands in the first place.

There should be no functional change, since the filters were all the
same. Perhaps blk_scsi_ioctl_init() isn't being run, a good start would
be to stick a printk() in there and verify that it's actually being
executed. I've been tricked by __init before.

-- 
Jens Axboe


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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 16:44         ` James Bottomley
  2009-07-08 16:57           ` Jens Axboe
@ 2009-07-08 18:22           ` Maciej Rutecki
  1 sibling, 0 replies; 16+ messages in thread
From: Maciej Rutecki @ 2009-07-08 18:22 UTC (permalink / raw)
  To: James Bottomley
  Cc: Daniel Walker, Andrew Morton, Tarkan Erimer, Jens Axboe,
	linux-kernel, linux-scsi

2009/7/8 James Bottomley <James.Bottomley@hansenpartnership.com>:
> On Wed, 2009-07-08 at 09:06 -0700, Daniel Walker wrote:
>> On Wed, 2009-07-08 at 09:27 -0500, James Bottomley wrote:
>> >
>> > You might also try this patch from martin petersen:  it will print out
>> > the actual command that's causing the problems ... that might give a
>> > clue.
>> >
>> > James
>>
>> On the bugzilla entry ,
>>
>> http://bugzilla.kernel.org/show_bug.cgi?id=13727
>>
>> Thomas Meyer indicated it was (possibly) the following commit,
>>
>> 018e0446890661504783f92388ecce7138c1566d
>>
>> I added Jens to the CC ..
>
> So thats:
>
> commit 018e0446890661504783f92388ecce7138c1566d
> Author: Jens Axboe <jens.axboe@oracle.com>
> Date:   Fri Jun 26 16:27:10 2009 +0200
>
>    block: get rid of queue-private command filter
>
> What this tends to suggest is that the command filter was blocking some
> type of command sent from user space which is causing the problem, and
> now we're letting it through.  Restoring the command filter will work
> around the problem, but the root cause should be finding and fixing
> whatever is issuing the commands in the first place.
>
> James
>
>
>

Confirm. I find some time, and do bisection:
018e0446890661504783f92388ecce7138c1566d is first bad commit
commit 018e0446890661504783f92388ecce7138c1566d
Author: Jens Axboe <jens.axboe@oracle.com>
Date:   Fri Jun 26 16:27:10 2009 +0200

    block: get rid of queue-private command filter

    The initial patches to support this through sysfs export were broken
    and have been if 0'ed out in any release. So lets just kill the code
    and reclaim some space in struct request_queue, if anyone would later
    like to fixup the sysfs bits, the git history can easily restore
    the removed bits.

    Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

:040000 040000 aaaec08cd15fe376286ef07b90eddb60f7dc98a1
5cc15daa4a596dcb97300baf7828e78ceeb40d5e M      block
:040000 040000 f1fbb94e7136c18e0df7d967800073a98901d51d
0d0a6e6e360b75daf9dc673a5ef0b7d745d5718e M      drivers
:040000 040000 e56a6498a1ca54adce4972cc2fe092a6e054165f
1c1e974e56532151cf0c98bfeb1ff05971e5b2c1 M      include

I revert this commit and in -rc2 k3b can see dvd drive. (some
explanation: I have little different problem; k3b can't see/detect DVD
drive).



Regards
-- 
Maciej Rutecki
http://www.maciek.unixy.pl

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 14:27     ` James Bottomley
  2009-07-08 16:06       ` Daniel Walker
@ 2009-07-08 22:52       ` Martin K. Petersen
  2009-07-09  4:28         ` James Bottomley
  1 sibling, 1 reply; 16+ messages in thread
From: Martin K. Petersen @ 2009-07-08 22:52 UTC (permalink / raw)
  To: James Bottomley
  Cc: Maciej Rutecki, Andrew Morton, Tarkan Erimer, linux-kernel,
	linux-scsi

>>>>> "James" == James Bottomley <James.Bottomley@HansenPartnership.com> writes:

James> You might also try this patch from martin petersen: it will print
James> out the actual command that's causing the problems ... that might
James> give a clue.

Any particular reason you didn't merge that patch, btw.?  It's been
extremely useful on this end...

-- 
Martin K. Petersen	Oracle Linux Engineering


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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 16:57           ` Jens Axboe
@ 2009-07-08 23:49             ` FUJITA Tomonori
  2009-07-08 23:54               ` FUJITA Tomonori
                                 ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: FUJITA Tomonori @ 2009-07-08 23:49 UTC (permalink / raw)
  To: jens.axboe
  Cc: James.Bottomley, dwalker, maciej.rutecki, akpm, tarkan.erimer,
	linux-kernel, linux-scsi

On Wed, 8 Jul 2009 18:57:28 +0200
Jens Axboe <jens.axboe@oracle.com> wrote:

> On Wed, Jul 08 2009, James Bottomley wrote:
> > On Wed, 2009-07-08 at 09:06 -0700, Daniel Walker wrote:
> > > On Wed, 2009-07-08 at 09:27 -0500, James Bottomley wrote:
> > > > 
> > > > You might also try this patch from martin petersen:  it will print out
> > > > the actual command that's causing the problems ... that might give a
> > > > clue.
> > > > 
> > > > James
> > > 
> > > On the bugzilla entry ,
> > > 
> > > http://bugzilla.kernel.org/show_bug.cgi?id=13727
> > > 
> > > Thomas Meyer indicated it was (possibly) the following commit,
> > > 
> > > 018e0446890661504783f92388ecce7138c1566d
> > > 
> > > I added Jens to the CC ..
> > 
> > So thats:
> > 
> > commit 018e0446890661504783f92388ecce7138c1566d
> > Author: Jens Axboe <jens.axboe@oracle.com>
> > Date:   Fri Jun 26 16:27:10 2009 +0200
> > 
> >     block: get rid of queue-private command filter
> > 
> > What this tends to suggest is that the command filter was blocking some
> > type of command sent from user space which is causing the problem, and
> > now we're letting it through.  Restoring the command filter will work
> > around the problem, but the root cause should be finding and fixing
> > whatever is issuing the commands in the first place.
> 
> There should be no functional change, since the filters were all the
> same. Perhaps blk_scsi_ioctl_init() isn't being run, a good start would
> be to stick a printk() in there and verify that it's actually being
> executed. I've been tricked by __init before.

I can't find where you call blk_scsi_ioctl_init(). I've attached a fix
(not tested).

Jens, I'm not sure that I saw the above patch on any mailing list. If
you merged the patch without sending any mailing list, please don't do
that.


=
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Subject: [PATCH] block: call blk_scsi_ioctl_init()

Currently, blk_scsi_ioctl_init() is not called so
blk_default_cmd_filter isn't initalized. Some commands are not blocked
wrongly.

This fixes a regression introduced:

commit 018e0446890661504783f92388ecce7138c1566d
Author: Jens Axboe <jens.axboe@oracle.com>
Date:   Fri Jun 26 16:27:10 2009 +0200

    block: get rid of queue-private command filter

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
 block/scsi_ioctl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
index f0e0ce0..e5b1001 100644
--- a/block/scsi_ioctl.c
+++ b/block/scsi_ioctl.c
@@ -680,3 +680,4 @@ int __init blk_scsi_ioctl_init(void)
 	blk_set_cmd_filter_defaults(&blk_default_cmd_filter);
 	return 0;
 }
+fs_initcall(blk_scsi_ioctl_init);
-- 
1.6.0.6


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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 23:49             ` FUJITA Tomonori
@ 2009-07-08 23:54               ` FUJITA Tomonori
  2009-07-09  6:27               ` Maciej Rutecki
  2009-07-09  7:50               ` Jens Axboe
  2 siblings, 0 replies; 16+ messages in thread
From: FUJITA Tomonori @ 2009-07-08 23:54 UTC (permalink / raw)
  To: fujita.tomonori
  Cc: jens.axboe, James.Bottomley, dwalker, maciej.rutecki, akpm,
	tarkan.erimer, linux-kernel, linux-scsi

On Thu, 9 Jul 2009 08:49:34 +0900
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:

> On Wed, 8 Jul 2009 18:57:28 +0200
> Jens Axboe <jens.axboe@oracle.com> wrote:
> 
> > On Wed, Jul 08 2009, James Bottomley wrote:
> > > On Wed, 2009-07-08 at 09:06 -0700, Daniel Walker wrote:
> > > > On Wed, 2009-07-08 at 09:27 -0500, James Bottomley wrote:
> > > > > 
> > > > > You might also try this patch from martin petersen:  it will print out
> > > > > the actual command that's causing the problems ... that might give a
> > > > > clue.
> > > > > 
> > > > > James
> > > > 
> > > > On the bugzilla entry ,
> > > > 
> > > > http://bugzilla.kernel.org/show_bug.cgi?id=13727
> > > > 
> > > > Thomas Meyer indicated it was (possibly) the following commit,
> > > > 
> > > > 018e0446890661504783f92388ecce7138c1566d
> > > > 
> > > > I added Jens to the CC ..
> > > 
> > > So thats:
> > > 
> > > commit 018e0446890661504783f92388ecce7138c1566d
> > > Author: Jens Axboe <jens.axboe@oracle.com>
> > > Date:   Fri Jun 26 16:27:10 2009 +0200
> > > 
> > >     block: get rid of queue-private command filter
> > > 
> > > What this tends to suggest is that the command filter was blocking some
> > > type of command sent from user space which is causing the problem, and
> > > now we're letting it through.  Restoring the command filter will work
> > > around the problem, but the root cause should be finding and fixing
> > > whatever is issuing the commands in the first place.
> > 
> > There should be no functional change, since the filters were all the
> > same. Perhaps blk_scsi_ioctl_init() isn't being run, a good start would
> > be to stick a printk() in there and verify that it's actually being
> > executed. I've been tricked by __init before.
> 
> I can't find where you call blk_scsi_ioctl_init(). I've attached a fix
> (not tested).
> 
> Jens, I'm not sure that I saw the above patch on any mailing list. If
> you merged the patch without sending any mailing list, please don't do
> that.
> 
> 
> =
> From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Subject: [PATCH] block: call blk_scsi_ioctl_init()
> 
> Currently, blk_scsi_ioctl_init() is not called so
> blk_default_cmd_filter isn't initalized. Some commands are not blocked
> wrongly.

Oops, it should have been "some commands are blocked wrongly".

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 22:52       ` Martin K. Petersen
@ 2009-07-09  4:28         ` James Bottomley
  0 siblings, 0 replies; 16+ messages in thread
From: James Bottomley @ 2009-07-09  4:28 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Maciej Rutecki, Andrew Morton, Tarkan Erimer, linux-kernel,
	linux-scsi

On Wed, 2009-07-08 at 18:52 -0400, Martin K. Petersen wrote:
> >>>>> "James" == James Bottomley <James.Bottomley@HansenPartnership.com> writes:
> 
> James> You might also try this patch from martin petersen: it will print
> James> out the actual command that's causing the problems ... that might
> James> give a clue.
> 
> Any particular reason you didn't merge that patch, btw.?  It's been
> extremely useful on this end...

No-one reminded me ... until the potential debugging use triggered a
memory.

James



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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 23:49             ` FUJITA Tomonori
  2009-07-08 23:54               ` FUJITA Tomonori
@ 2009-07-09  6:27               ` Maciej Rutecki
  2009-07-09  7:50               ` Jens Axboe
  2 siblings, 0 replies; 16+ messages in thread
From: Maciej Rutecki @ 2009-07-09  6:27 UTC (permalink / raw)
  To: FUJITA Tomonori
  Cc: jens.axboe, James.Bottomley, dwalker, akpm, tarkan.erimer,
	linux-kernel, linux-scsi

2009/7/9 FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>:

> From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Subject: [PATCH] block: call blk_scsi_ioctl_init()
>
> Currently, blk_scsi_ioctl_init() is not called so
> blk_default_cmd_filter isn't initalized. Some commands are not blocked
> wrongly.
>
> This fixes a regression introduced:
>
> commit 018e0446890661504783f92388ecce7138c1566d
> Author: Jens Axboe <jens.axboe@oracle.com>
> Date:   Fri Jun 26 16:27:10 2009 +0200
>
>    block: get rid of queue-private command filter
>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>

Works with latest git. Thanks for patch

Tested-by Maciej Rutecki <maciej.rutecki@gmail>


-- 
Maciej Rutecki
http://www.maciek.unixy.pl

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-08 23:49             ` FUJITA Tomonori
  2009-07-08 23:54               ` FUJITA Tomonori
  2009-07-09  6:27               ` Maciej Rutecki
@ 2009-07-09  7:50               ` Jens Axboe
  2009-07-09  8:08                 ` FUJITA Tomonori
  2 siblings, 1 reply; 16+ messages in thread
From: Jens Axboe @ 2009-07-09  7:50 UTC (permalink / raw)
  To: FUJITA Tomonori
  Cc: James.Bottomley, dwalker, maciej.rutecki, akpm, tarkan.erimer,
	linux-kernel, linux-scsi

On Thu, Jul 09 2009, FUJITA Tomonori wrote:
> From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Subject: [PATCH] block: call blk_scsi_ioctl_init()
> 
> Currently, blk_scsi_ioctl_init() is not called so
> blk_default_cmd_filter isn't initalized. Some commands are not blocked
> wrongly.
> 
> This fixes a regression introduced:
> 
> commit 018e0446890661504783f92388ecce7138c1566d
> Author: Jens Axboe <jens.axboe@oracle.com>
> Date:   Fri Jun 26 16:27:10 2009 +0200
> 
>     block: get rid of queue-private command filter
> 
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> ---
>  block/scsi_ioctl.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
> index f0e0ce0..e5b1001 100644
> --- a/block/scsi_ioctl.c
> +++ b/block/scsi_ioctl.c
> @@ -680,3 +680,4 @@ int __init blk_scsi_ioctl_init(void)
>  	blk_set_cmd_filter_defaults(&blk_default_cmd_filter);
>  	return 0;
>  }
> +fs_initcall(blk_scsi_ioctl_init);
> -- 
> 1.6.0.6

You beat me to it, it was the missing call as I suspected. This
works, I verified it myself. Applied to for-linus, going upstream
soon.

-- 
Jens Axboe


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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-09  7:50               ` Jens Axboe
@ 2009-07-09  8:08                 ` FUJITA Tomonori
  2009-07-09  8:12                   ` Jens Axboe
  0 siblings, 1 reply; 16+ messages in thread
From: FUJITA Tomonori @ 2009-07-09  8:08 UTC (permalink / raw)
  To: jens.axboe
  Cc: fujita.tomonori, James.Bottomley, dwalker, maciej.rutecki, akpm,
	tarkan.erimer, linux-kernel, linux-scsi

On Thu, 9 Jul 2009 09:50:04 +0200
Jens Axboe <jens.axboe@oracle.com> wrote:

> On Thu, Jul 09 2009, FUJITA Tomonori wrote:
> > From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > Subject: [PATCH] block: call blk_scsi_ioctl_init()
> > 
> > Currently, blk_scsi_ioctl_init() is not called so
> > blk_default_cmd_filter isn't initalized. Some commands are not blocked
> > wrongly.
> > 
> > This fixes a regression introduced:
> > 
> > commit 018e0446890661504783f92388ecce7138c1566d
> > Author: Jens Axboe <jens.axboe@oracle.com>
> > Date:   Fri Jun 26 16:27:10 2009 +0200
> > 
> >     block: get rid of queue-private command filter
> > 
> > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > ---
> >  block/scsi_ioctl.c |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
> > index f0e0ce0..e5b1001 100644
> > --- a/block/scsi_ioctl.c
> > +++ b/block/scsi_ioctl.c
> > @@ -680,3 +680,4 @@ int __init blk_scsi_ioctl_init(void)
> >  	blk_set_cmd_filter_defaults(&blk_default_cmd_filter);
> >  	return 0;
> >  }
> > +fs_initcall(blk_scsi_ioctl_init);
> > -- 
> > 1.6.0.6
> 
> You beat me to it, it was the missing call as I suspected. This
> works, I verified it myself. Applied to for-linus, going upstream
> soon.

I really hope that you become more serious about not causing such
incident; breaking mainline kernel by merging your trivial patch after
-rc1 (even without sending the patch to any mailing list). You broke
mainline in the exact same way just months ago (the commit
1e42807918d17e8c93bf14fbb74be84b141334c1 in 2.6.29-rc7).


Thanks,

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

* Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
  2009-07-09  8:08                 ` FUJITA Tomonori
@ 2009-07-09  8:12                   ` Jens Axboe
  0 siblings, 0 replies; 16+ messages in thread
From: Jens Axboe @ 2009-07-09  8:12 UTC (permalink / raw)
  To: FUJITA Tomonori
  Cc: James.Bottomley, dwalker, maciej.rutecki, akpm, tarkan.erimer,
	linux-kernel, linux-scsi

On Thu, Jul 09 2009, FUJITA Tomonori wrote:
> On Thu, 9 Jul 2009 09:50:04 +0200
> Jens Axboe <jens.axboe@oracle.com> wrote:
> 
> > On Thu, Jul 09 2009, FUJITA Tomonori wrote:
> > > From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > > Subject: [PATCH] block: call blk_scsi_ioctl_init()
> > > 
> > > Currently, blk_scsi_ioctl_init() is not called so
> > > blk_default_cmd_filter isn't initalized. Some commands are not blocked
> > > wrongly.
> > > 
> > > This fixes a regression introduced:
> > > 
> > > commit 018e0446890661504783f92388ecce7138c1566d
> > > Author: Jens Axboe <jens.axboe@oracle.com>
> > > Date:   Fri Jun 26 16:27:10 2009 +0200
> > > 
> > >     block: get rid of queue-private command filter
> > > 
> > > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > > ---
> > >  block/scsi_ioctl.c |    1 +
> > >  1 files changed, 1 insertions(+), 0 deletions(-)
> > > 
> > > diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
> > > index f0e0ce0..e5b1001 100644
> > > --- a/block/scsi_ioctl.c
> > > +++ b/block/scsi_ioctl.c
> > > @@ -680,3 +680,4 @@ int __init blk_scsi_ioctl_init(void)
> > >  	blk_set_cmd_filter_defaults(&blk_default_cmd_filter);
> > >  	return 0;
> > >  }
> > > +fs_initcall(blk_scsi_ioctl_init);
> > > -- 
> > > 1.6.0.6
> > 
> > You beat me to it, it was the missing call as I suspected. This
> > works, I verified it myself. Applied to for-linus, going upstream
> > soon.
> 
> I really hope that you become more serious about not causing such
> incident; breaking mainline kernel by merging your trivial patch after
> -rc1 (even without sending the patch to any mailing list). You broke
> mainline in the exact same way just months ago (the commit
> 1e42807918d17e8c93bf14fbb74be84b141334c1 in 2.6.29-rc7).

It should have waited for .32, I agree. I had it sitting around
for quite a while, not sure why the merged version didn't have
the initcall added. But yes, I should have posted and postponed
it.

-- 
Jens Axboe


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

end of thread, other threads:[~2009-07-09  8:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 13:23 [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media Tarkan Erimer
2009-07-02 20:07 ` Andrew Morton
2009-07-08 13:09   ` Maciej Rutecki
2009-07-08 14:27     ` James Bottomley
2009-07-08 16:06       ` Daniel Walker
2009-07-08 16:44         ` James Bottomley
2009-07-08 16:57           ` Jens Axboe
2009-07-08 23:49             ` FUJITA Tomonori
2009-07-08 23:54               ` FUJITA Tomonori
2009-07-09  6:27               ` Maciej Rutecki
2009-07-09  7:50               ` Jens Axboe
2009-07-09  8:08                 ` FUJITA Tomonori
2009-07-09  8:12                   ` Jens Axboe
2009-07-08 18:22           ` Maciej Rutecki
2009-07-08 22:52       ` Martin K. Petersen
2009-07-09  4:28         ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox