aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/elevator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/elevator.c')
-rw-r--r--drivers/block/elevator.c9
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
223static int elevator_global_init(void)
224{
225 return 0;
226}
227
228int elv_merge(request_queue_t *q, struct request **req, struct bio *bio) 223int 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
708module_init(elevator_global_init);
709
710EXPORT_SYMBOL(elv_add_request); 703EXPORT_SYMBOL(elv_add_request);
711EXPORT_SYMBOL(__elv_add_request); 704EXPORT_SYMBOL(__elv_add_request);
712EXPORT_SYMBOL(elv_requeue_request); 705EXPORT_SYMBOL(elv_requeue_request);