diff options
| author | Jens Axboe <jaxboe@fusionio.com> | 2011-03-10 02:58:35 -0500 |
|---|---|---|
| committer | Jens Axboe <jaxboe@fusionio.com> | 2011-03-10 02:58:35 -0500 |
| commit | 4c63f5646e405b5010cc9499419060bf2e838f5b (patch) | |
| tree | df91ba315032c8ec4aafeb3ab96fdfa7c6c656e1 /drivers/ide | |
| parent | cafb0bfca1a73efd6d8a4a6a6a716e6134b96c24 (diff) | |
| parent | 69d60eb96ae8a73cf9b79cf28051caf973006011 (diff) | |
Merge branch 'for-2.6.39/stack-plug' into for-2.6.39/core
Conflicts:
block/blk-core.c
block/blk-flush.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
fs/nilfs2/btnode.c
fs/nilfs2/mdt.c
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/ide')
| -rw-r--r-- | drivers/ide/ide-atapi.c | 3 | ||||
| -rw-r--r-- | drivers/ide/ide-cd.c | 13 | ||||
| -rw-r--r-- | drivers/ide/ide-io.c | 4 | ||||
| -rw-r--r-- | drivers/ide/ide-park.c | 2 |
4 files changed, 4 insertions, 18 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index e88a2cf17711..6f218e014e99 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
| @@ -233,8 +233,7 @@ int ide_queue_sense_rq(ide_drive_t *drive, void *special) | |||
| 233 | 233 | ||
| 234 | drive->hwif->rq = NULL; | 234 | drive->hwif->rq = NULL; |
| 235 | 235 | ||
| 236 | elv_add_request(drive->queue, &drive->sense_rq, | 236 | elv_add_request(drive->queue, &drive->sense_rq, ELEVATOR_INSERT_FRONT); |
| 237 | ELEVATOR_INSERT_FRONT, 0); | ||
| 238 | return 0; | 237 | return 0; |
| 239 | } | 238 | } |
| 240 | EXPORT_SYMBOL_GPL(ide_queue_sense_rq); | 239 | EXPORT_SYMBOL_GPL(ide_queue_sense_rq); |
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index a2e29099ee0c..fd1e11799137 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
| @@ -258,17 +258,10 @@ static int ide_cd_breathe(ide_drive_t *drive, struct request *rq) | |||
| 258 | if (time_after(jiffies, info->write_timeout)) | 258 | if (time_after(jiffies, info->write_timeout)) |
| 259 | return 0; | 259 | return 0; |
| 260 | else { | 260 | else { |
| 261 | struct request_queue *q = drive->queue; | ||
| 262 | unsigned long flags; | ||
| 263 | |||
| 264 | /* | 261 | /* |
| 265 | * take a breather relying on the unplug timer to kick us again | 262 | * take a breather |
| 266 | */ | 263 | */ |
| 267 | 264 | blk_delay_queue(drive->queue, 1); | |
| 268 | spin_lock_irqsave(q->queue_lock, flags); | ||
| 269 | blk_plug_device(q); | ||
| 270 | spin_unlock_irqrestore(q->queue_lock, flags); | ||
| 271 | |||
| 272 | return 1; | 265 | return 1; |
| 273 | } | 266 | } |
| 274 | } | 267 | } |
| @@ -1514,8 +1507,6 @@ static int ide_cdrom_setup(ide_drive_t *drive) | |||
| 1514 | blk_queue_dma_alignment(q, 31); | 1507 | blk_queue_dma_alignment(q, 31); |
| 1515 | blk_queue_update_dma_pad(q, 15); | 1508 | blk_queue_update_dma_pad(q, 15); |
| 1516 | 1509 | ||
| 1517 | q->unplug_delay = max((1 * HZ) / 1000, 1); | ||
| 1518 | |||
| 1519 | drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED; | 1510 | drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED; |
| 1520 | drive->atapi_flags = IDE_AFLAG_NO_EJECT | ide_cd_flags(id); | 1511 | drive->atapi_flags = IDE_AFLAG_NO_EJECT | ide_cd_flags(id); |
| 1521 | 1512 | ||
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 999dac054bcc..f4077840d3ab 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
| @@ -549,8 +549,6 @@ plug_device_2: | |||
| 549 | 549 | ||
| 550 | if (rq) | 550 | if (rq) |
| 551 | blk_requeue_request(q, rq); | 551 | blk_requeue_request(q, rq); |
| 552 | if (!elv_queue_empty(q)) | ||
| 553 | blk_plug_device(q); | ||
| 554 | } | 552 | } |
| 555 | 553 | ||
| 556 | void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) | 554 | void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) |
| @@ -562,8 +560,6 @@ void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq) | |||
| 562 | 560 | ||
| 563 | if (rq) | 561 | if (rq) |
| 564 | blk_requeue_request(q, rq); | 562 | blk_requeue_request(q, rq); |
| 565 | if (!elv_queue_empty(q)) | ||
| 566 | blk_plug_device(q); | ||
| 567 | 563 | ||
| 568 | spin_unlock_irqrestore(q->queue_lock, flags); | 564 | spin_unlock_irqrestore(q->queue_lock, flags); |
| 569 | } | 565 | } |
diff --git a/drivers/ide/ide-park.c b/drivers/ide/ide-park.c index 88a380c5a470..6ab9ab2a5081 100644 --- a/drivers/ide/ide-park.c +++ b/drivers/ide/ide-park.c | |||
| @@ -52,7 +52,7 @@ static void issue_park_cmd(ide_drive_t *drive, unsigned long timeout) | |||
| 52 | rq->cmd[0] = REQ_UNPARK_HEADS; | 52 | rq->cmd[0] = REQ_UNPARK_HEADS; |
| 53 | rq->cmd_len = 1; | 53 | rq->cmd_len = 1; |
| 54 | rq->cmd_type = REQ_TYPE_SPECIAL; | 54 | rq->cmd_type = REQ_TYPE_SPECIAL; |
| 55 | elv_add_request(q, rq, ELEVATOR_INSERT_FRONT, 1); | 55 | elv_add_request(q, rq, ELEVATOR_INSERT_FRONT); |
| 56 | 56 | ||
| 57 | out: | 57 | out: |
| 58 | return; | 58 | return; |
