lkml.org 
[lkml]   [2009]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/18] io-controller: deadline changes for hierarchical fair queuing
    Date
    This patch changes deadline to use queue scheduling code from elevator layer.
    One can go back to old deadline by selecting CONFIG_IOSCHED_DEADLINE_HIER.

    Signed-off-by: Nauman Rafique <nauman@google.com>
    Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
    ---
    block/Kconfig.iosched | 11 +++++++++++
    block/deadline-iosched.c | 3 +++
    2 files changed, 14 insertions(+), 0 deletions(-)

    diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
    index 9da6657..3a9e7d7 100644
    --- a/block/Kconfig.iosched
    +++ b/block/Kconfig.iosched
    @@ -55,6 +55,17 @@ config IOSCHED_DEADLINE
    a disk at any one time, its behaviour is almost identical to the
    anticipatory I/O scheduler and so is a good choice.

    +config IOSCHED_DEADLINE_HIER
    + bool "Deadline Hierarchical Scheduling support"
    + depends on IOSCHED_DEADLINE && CGROUPS
    + select ELV_FAIR_QUEUING
    + select GROUP_IOSCHED
    + default n
    + ---help---
    + Enable hierarhical scheduling in deadline. In this mode deadline keeps
    + one IO queue per cgroup instead of a global queue. Elevator
    + fair queuing logic ensures fairness among various queues.
    +
    config IOSCHED_CFQ
    tristate "CFQ I/O scheduler"
    select ELV_FAIR_QUEUING
    diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c
    index 5e65041..27b77b9 100644
    --- a/block/deadline-iosched.c
    +++ b/block/deadline-iosched.c
    @@ -477,6 +477,9 @@ static struct elevator_type iosched_deadline = {
    .elevator_alloc_sched_queue_fn = deadline_alloc_deadline_queue,
    .elevator_free_sched_queue_fn = deadline_free_deadline_queue,
    },
    +#ifdef CONFIG_IOSCHED_DEADLINE_HIER
    + .elevator_features = ELV_IOSCHED_NEED_FQ | ELV_IOSCHED_SINGLE_IOQ,
    +#endif
    .elevator_attrs = deadline_attrs,
    .elevator_name = "deadline",
    .elevator_owner = THIS_MODULE,
    --
    1.6.0.1


    \
     
     \ /
      Last update: 2009-05-05 22:03    [W:0.023 / U:0.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site