Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142978
b: refs/heads/master
c: 3c8a48e
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Apr 8, 2009
1 parent b37d213 commit 34efa4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3153c26b54230d025c6d536e8d3015def4524906
refs/heads/master: 3c8a48e9a94be1e063f2f8d7d5f6f691423a3e71
8 changes: 4 additions & 4 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,15 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)

switch (sense_key) {
case NOT_READY:
if (blk_fs_request(rq) == 0 || rq_data_dir(rq) == READ) {
if (blk_fs_request(rq) && rq_data_dir(rq) == WRITE) {
if (ide_cd_breathe(drive, rq))
return 1;
} else {
cdrom_saw_media_change(drive);

if (blk_fs_request(rq) && !quiet)
printk(KERN_ERR PFX "%s: tray open\n",
drive->name);
} else {
if (ide_cd_breathe(drive, rq))
return 1;
}
do_end_request = 1;
break;
Expand Down

0 comments on commit 34efa4f

Please sign in to comment.