Bug 11581

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

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux