Skip to content

Commit

Permalink
Merge 'for-linus' branch of master.kernel.org:/pub/scm/linux/kernel/g…
Browse files Browse the repository at this point in the history
…it/axboe/linux-2.6-block
  • Loading branch information
Linus Torvalds committed Jun 16, 2005
2 parents 58125f9 + c374f12 commit c081474
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@ void elevator_exit(elevator_t *e)
kfree(e);
}

static int elevator_global_init(void)
{
return 0;
}

int elv_merge(request_queue_t *q, struct request **req, struct bio *bio)
{
elevator_t *e = q->elevator;
Expand Down Expand Up @@ -322,7 +317,7 @@ void __elv_add_request(request_queue_t *q, struct request *rq, int where,
int nrq = q->rq.count[READ] + q->rq.count[WRITE]
- q->in_flight;

if (nrq == q->unplug_thresh)
if (nrq >= q->unplug_thresh)
__generic_unplug_device(q);
}
} else
Expand Down Expand Up @@ -692,8 +687,6 @@ ssize_t elv_iosched_show(request_queue_t *q, char *name)
return len;
}

module_init(elevator_global_init);

EXPORT_SYMBOL(elv_add_request);
EXPORT_SYMBOL(__elv_add_request);
EXPORT_SYMBOL(elv_requeue_request);
Expand Down

0 comments on commit c081474

Please sign in to comment.