diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-16 18:53:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-16 18:53:48 +0200 |
commit | c081474c184b34136e09e1e335f41356a11c7b68 (patch) | |
tree | fe68ea74235af27d23cc375c94b4bf6baf99eb26 | |
parent | [PATCH] fix for kaweth broken by changes in the networking layer (diff) | |
parent | This patch fixes q->unplug_thresh condition check in (diff) | |
download | linux-c081474c184b34136e09e1e335f41356a11c7b68.tar.xz linux-c081474c184b34136e09e1e335f41356a11c7b68.zip |
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) 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; @@ -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 @@ -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); |