Linux ATA/IDE development
 help / color / mirror / Atom feed
* Bug 11581
@ 2008-10-04  9:12 Borislav Petkov
       [not found] ` <Pine.LNX.4.64.0810051147470.2543@cantor.unex.es>
  0 siblings, 1 reply; 15+ messages in thread
From: Borislav Petkov @ 2008-10-04  9:12 UTC (permalink / raw)
  To: Santiago Vila; +Cc: bzolnier, axboe, linux-ide

Hi,

can you please apply the following revised inquiry patch and send me your dmesg
so that we get more info on what exactly triggers that begavior with your drive?

Thanks.

---
 drivers/ide/ide-cd.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 1f2df24..d5106d0 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1329,6 +1329,15 @@ static ide_startstop_t ide_cd_do_request(ide_drive_t *drive, struct request *rq,
 		if (!rq->timeout)
 			rq->timeout = ATAPI_WAIT_PC;
 
+		if (blk_pc_request(rq)) {
+			printk(KERN_ERR "Sending BLOCK_PC to drive! Fixed.\n");
+			blk_dump_rq_flags(rq, "Original rq: ");
+			printk(KERN_ERR "rq->cmd_len: %d\n", rq->cmd_len);
+			rq->cmd_type = REQ_TYPE_ATA_PC;
+
+			dump_stack();
+		}
+
 		cdrom_do_block_pc(drive, rq);
 	} else if (blk_special_request(rq)) {
 		/* right now this can only be a reset... */
-- 
1.5.5.4

-- 
Regards/Gruss,
    Boris.

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

end of thread, other threads:[~2008-11-11 10:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-04  9:12 Bug 11581 Borislav Petkov
     [not found] ` <Pine.LNX.4.64.0810051147470.2543@cantor.unex.es>
2008-10-10  6:16   ` Borislav Petkov
2008-10-10 10:23     ` Santiago Vila
2008-10-12  7:15       ` Borislav Petkov
2008-10-14 11:18         ` Santiago Vila
2008-10-14 11:53           ` Boris Petkov
2008-10-14 15:11             ` Santiago Vila
2008-10-26 15:46               ` Borislav Petkov
2008-10-27 11:58                 ` Santiago Vila
2008-10-27 13:02                   ` Boris Petkov
2008-10-28 11:04                 ` Santiago Vila
2008-11-10  6:34                   ` Borislav Petkov
2008-11-10 12:02                     ` Santiago Vila
2008-11-11  7:11                       ` Borislav Petkov
2008-11-11 10:17                         ` Santiago Vila

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