diff options
Diffstat (limited to 'drivers/block/elevator.c')
-rw-r--r-- | drivers/block/elevator.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/block/elevator.c b/drivers/block/elevator.c index 8c51d1ccebbd..f831f08f839c 100644 --- a/drivers/block/elevator.c +++ b/drivers/block/elevator.c | |||
@@ -220,11 +220,6 @@ void elevator_exit(elevator_t *e) | |||
220 | kfree(e); | 220 | kfree(e); |
221 | } | 221 | } |
222 | 222 | ||
223 | static int elevator_global_init(void) | ||
224 | { | ||
225 | return 0; | ||
226 | } | ||
227 | |||
228 | int elv_merge(request_queue_t *q, struct request **req, struct bio *bio) | 223 | int elv_merge(request_queue_t *q, struct request **req, struct bio *bio) |
229 | { | 224 | { |
230 | elevator_t *e = q->elevator; | 225 | elevator_t *e = q->elevator; |
@@ -329,7 +324,7 @@ void __elv_add_request(request_queue_t *q, struct request *rq, int where, | |||
329 | int nrq = q->rq.count[READ] + q->rq.count[WRITE] | 324 | int nrq = q->rq.count[READ] + q->rq.count[WRITE] |
330 | - q->in_flight; | 325 | - q->in_flight; |
331 | 326 | ||
332 | if (nrq == q->unplug_thresh) | 327 | if (nrq >= q->unplug_thresh) |
333 | __generic_unplug_device(q); | 328 | __generic_unplug_device(q); |
334 | } | 329 | } |
335 | } else | 330 | } else |
@@ -705,8 +700,6 @@ ssize_t elv_iosched_show(request_queue_t *q, char *name) | |||
705 | return len; | 700 | return len; |
706 | } | 701 | } |
707 | 702 | ||
708 | module_init(elevator_global_init); | ||
709 | |||
710 | EXPORT_SYMBOL(elv_add_request); | 703 | EXPORT_SYMBOL(elv_add_request); |
711 | EXPORT_SYMBOL(__elv_add_request); | 704 | EXPORT_SYMBOL(__elv_add_request); |
712 | EXPORT_SYMBOL(elv_requeue_request); | 705 | EXPORT_SYMBOL(elv_requeue_request); |