[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] Re: [PATCH] IO Controller: Add per-device weight and ioprio_class handling
- From: Gui Jianfeng <guijianfeng cn fujitsu com>
- To: Vivek Goyal <vgoyal redhat com>
- Cc: dhaval linux vnet ibm com, snitzer redhat com, dm-devel redhat com, dpshah google com, jens axboe oracle com, agk redhat com, balbir linux vnet ibm com, paolo valente unimore it, fernando oss ntt co jp, mikew google com, jmoyer redhat com, nauman google com, m-ikeda ds jp nec com, lizf cn fujitsu com, fchecconi gmail com, s-uchida ap jp nec com, containers lists linux-foundation org, linux-kernel vger kernel org, akpm linux-foundation org, righi andrea gmail com
- Subject: [dm-devel] Re: [PATCH] IO Controller: Add per-device weight and ioprio_class handling
- Date: Thu, 14 May 2009 09:02:05 +0800
Vivek Goyal wrote:
> On Wed, May 13, 2009 at 10:00:21AM +0800, Gui Jianfeng wrote:
>
> [..]
>> @@ -2137,7 +2366,7 @@ void elv_fq_unset_request_ioq(struct request_queue *q, struct request *rq)
>> void bfq_init_entity(struct io_entity *entity, struct io_group *iog)
>> {
>> entity->ioprio = entity->new_ioprio;
>> - entity->weight = entity->new_weight;
>> + entity->weight = entity->new_weigh;
>> entity->ioprio_class = entity->new_ioprio_class;
>> entity->sched_data = &iog->sched_data;
>> }
>> diff --git a/block/elevator-fq.h b/block/elevator-fq.h
>> index db3a347..0407633 100644
>> --- a/block/elevator-fq.h
>> +++ b/block/elevator-fq.h
>> @@ -253,6 +253,14 @@ struct io_group {
>> #endif
>> };
>>
>> +struct policy_node {
>
> Would "io_policy_node" be better?
Sure
>
>> + struct list_head node;
>> + char dev_name[32];
>> + void *key;
>> + unsigned long weight;
>> + unsigned long ioprio_class;
>> +};
>> +
>> /**
>> * struct bfqio_cgroup - bfq cgroup data structure.
>> * @css: subsystem state for bfq in the containing cgroup.
>> @@ -269,6 +277,9 @@ struct io_cgroup {
>>
>> unsigned long weight, ioprio_class;
>>
>> + /* list of policy_node */
>> + struct list_head list;
>> +
>
> How about "struct list_head policy_list" or "struct list_head io_policy"?
OK
--
Regards
Gui Jianfeng
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]