Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242273
b: refs/heads/master
c: 0a41e90
h: refs/heads/master
i:
  242271: 066a1ca
v: v3
  • Loading branch information
Jens Axboe committed Mar 10, 2011
1 parent 5bc3fdd commit f95ee99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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: 3cca6dc1c81e2407928dc4c6105252146fd3924f
refs/heads/master: 0a41e90bb7c931fd53d73ea770f5b251af6c91ce
13 changes: 2 additions & 11 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,10 @@ static int ide_cd_breathe(ide_drive_t *drive, struct request *rq)
if (time_after(jiffies, info->write_timeout))
return 0;
else {
struct request_queue *q = drive->queue;
unsigned long flags;

/*
* take a breather relying on the unplug timer to kick us again
* take a breather
*/

spin_lock_irqsave(q->queue_lock, flags);
blk_plug_device(q);
spin_unlock_irqrestore(q->queue_lock, flags);

blk_delay_queue(drive->queue, 1);
return 1;
}
}
Expand Down Expand Up @@ -1514,8 +1507,6 @@ static int ide_cdrom_setup(ide_drive_t *drive)
blk_queue_dma_alignment(q, 31);
blk_queue_update_dma_pad(q, 15);

q->unplug_delay = max((1 * HZ) / 1000, 1);

drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED;
drive->atapi_flags = IDE_AFLAG_NO_EJECT | ide_cd_flags(id);

Expand Down

0 comments on commit f95ee99

Please sign in to comment.