Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1be92f2fc7b563db3a8909d2d1c6a6520aeca323
Commit:     1be92f2fc7b563db3a8909d2d1c6a6520aeca323
Parent:     20e493a8d03b3b2f51b619a453f7bbbebedd6bda
Author:     Jens Axboe <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 19 14:32:26 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Mon Apr 30 09:01:22 2007 +0200

    cfq-iosched: never allow an async queue idling
    
    We don't enable it by default, don't let it get enabled during
    runtime.
    
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
---
 block/cfq-iosched.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 839086d..df82755 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -1603,7 +1603,12 @@ static void
 cfq_update_idle_window(struct cfq_data *cfqd, struct cfq_queue *cfqq,
                       struct cfq_io_context *cic)
 {
-       int enable_idle = cfq_cfqq_idle_window(cfqq);
+       int enable_idle;
+
+       if (!cfq_cfqq_sync(cfqq))
+               return;
+
+       enable_idle = cfq_cfqq_idle_window(cfqq);
 
        if (!cic->ioc->task || !cfqd->cfq_slice_idle ||
            (cfqd->hw_tag && CIC_SEEKY(cic)))
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to