ide-cd: call blk_dump_rq_flags() on "missing data" in cdrom_rw_intr()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:27 +0000 (23:09 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:27 +0000 (23:09 +0100)
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-cd.c

index 2a520bd27a371de0d1e901e192e592453c46fe1d..53af68eed87524a34b9d117f34fbd31042f57d6d 100644 (file)
@@ -1316,10 +1316,12 @@ static ide_startstop_t cdrom_rw_intr(ide_drive_t *drive)
                                 */
                                cdrom_buffer_sectors(drive, rq->sector,
                                                     thislen >> 9);
-                       else
+                       else {
                                printk(KERN_ERR "%s: %s: confused, missing "
                                                "data\n",
                                                drive->name, __FUNCTION__);
+                               blk_dump_rq_flags(rq, "cdrom_rw_intr, write");
+                       }
                        break;
                }