diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-16 12:53:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-16 12:53:48 -0400 |
commit | c081474c184b34136e09e1e335f41356a11c7b68 (patch) | |
tree | fe68ea74235af27d23cc375c94b4bf6baf99eb26 | |
parent | 58125f95c62a44f12bb71c58ef70f0068d20c7a2 (diff) | |
parent | c374f127e4ff17a318b9ae95a5bf65f370c2d0b1 (diff) |
Merge 'for-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/axboe/linux-2.6-block
-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 6b79b4314622..89982925f9e2 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; |
@@ -322,7 +317,7 @@ void __elv_add_request(request_queue_t *q, struct request *rq, int where, | |||
322 | int nrq = q->rq.count[READ] + q->rq.count[WRITE] | 317 | int nrq = q->rq.count[READ] + q->rq.count[WRITE] |
323 | - q->in_flight; | 318 | - q->in_flight; |
324 | 319 | ||
325 | if (nrq == q->unplug_thresh) | 320 | if (nrq >= q->unplug_thresh) |
326 | __generic_unplug_device(q); | 321 | __generic_unplug_device(q); |
327 | } | 322 | } |
328 | } else | 323 | } else |
@@ -692,8 +687,6 @@ ssize_t elv_iosched_show(request_queue_t *q, char *name) | |||
692 | return len; | 687 | return len; |
693 | } | 688 | } |
694 | 689 | ||
695 | module_init(elevator_global_init); | ||
696 | |||
697 | EXPORT_SYMBOL(elv_add_request); | 690 | EXPORT_SYMBOL(elv_add_request); |
698 | EXPORT_SYMBOL(__elv_add_request); | 691 | EXPORT_SYMBOL(__elv_add_request); |
699 | EXPORT_SYMBOL(elv_requeue_request); | 692 | EXPORT_SYMBOL(elv_requeue_request); |