From: Tejun Heo <htejun@gmail.com>
To: axboe@suse.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH Linux 2.6.12-rc4-mm2 03/03] cfq: remove serveral unused fields from cfq data structures
Date: Wed, 25 May 2005 01:35:34 +0900 (KST) [thread overview]
Message-ID: <20050524163518.EA42F6F1@htj.dyndns.org> (raw)
In-Reply-To: <20050524163518.0DA61D6C@htj.dyndns.org>
03_cfq_remove_unused_fields.patch
cfq_data->idle_start, cfq_data->end_prio and cfq_rq->end_pos
are not used in meaningful way. Remove'em.
Signed-off-by: Tejun Heo <htejun@gmail.com>
cfq-iosched.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
Index: blk-fixes/drivers/block/cfq-iosched.c
===================================================================
--- blk-fixes.orig/drivers/block/cfq-iosched.c 2005-05-25 01:35:16.000000000 +0900
+++ blk-fixes/drivers/block/cfq-iosched.c 2005-05-25 01:35:17.000000000 +0900
@@ -143,11 +143,10 @@ struct cfq_data {
*/
struct timer_list idle_slice_timer;
struct work_struct unplug_work;
- unsigned long idle_start;
struct cfq_queue *active_queue;
struct cfq_io_context *active_cic;
- int cur_prio, cur_end_prio, end_prio;
+ int cur_prio, cur_end_prio;
unsigned int dispatch_slice;
struct timer_list idle_class_timer;
@@ -234,8 +233,6 @@ struct cfq_rq {
struct cfq_queue *cfq_queue;
struct cfq_io_context *io_context;
- sector_t end_pos;
-
unsigned in_flight : 1;
unsigned accounted : 1;
unsigned is_sync : 1;
@@ -770,12 +767,9 @@ static int cfq_get_next_prio_level(struc
cfqd->cur_end_prio = cfqd->cur_prio;
cfqd->cur_prio = 0;
}
- if (cfqd->cur_end_prio > cfqd->end_prio)
- cfqd->end_prio = cfqd->cur_end_prio;
- if (cfqd->end_prio == CFQ_PRIO_LISTS) {
+ if (cfqd->cur_end_prio == CFQ_PRIO_LISTS) {
cfqd->cur_prio = 0;
cfqd->cur_end_prio = 0;
- cfqd->end_prio = 0;
}
return prio;
@@ -876,7 +870,6 @@ static int cfq_arm_slice_timer(struct cf
if (!timer_pending(&cfqd->idle_slice_timer)) {
unsigned long slice_left = cfqq->slice_end - 1;
- cfqd->idle_start = jiffies;
cfqd->idle_slice_timer.expires = min(jiffies + cfqd->cfq_slice_idle, slice_left);
add_timer(&cfqd->idle_slice_timer);
}
@@ -926,7 +919,6 @@ static void cfq_dispatch_sort(request_qu
cfq_del_crq_rb(crq);
cfq_remove_merge_hints(q, crq);
- crq->end_pos = crq->request->sector + crq->request->nr_sectors;
crq->in_flight = 1;
crq->requeued = 0;
cfqq->in_flight++;
next prev parent reply other threads:[~2005-05-24 16:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 16:35 [PATCH Linux 2.6.12-rc4-mm2 00/03] cfq: various fixes Tejun Heo
2005-05-24 16:35 ` [PATCH Linux 2.6.12-rc4-mm2 01/03] cfq: cfq ELEVATOR_INSERT_BACK fix Tejun Heo
2005-05-24 16:35 ` [PATCH Linux 2.6.12-rc4-mm2 02/03] cfq: cfq_io_context leak fix Tejun Heo
2005-05-24 16:35 ` Tejun Heo [this message]
2005-05-25 7:34 ` [PATCH Linux 2.6.12-rc4-mm2 00/03] cfq: various fixes Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050524163518.EA42F6F1@htj.dyndns.org \
--to=htejun@gmail.com \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®