login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
30
Re: [PATCH] cfq-iosched: Get rid of on_st flag
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Vivek Goyal
Subject:
Re: [PATCH] cfq-iosched: Get rid of on_st flag
Date: Tuesday, November 30, 2010 - 7:23 am
On Tue, Nov 30, 2010 at 04:41:31PM +0800, Gui Jianfeng wrote:
quoted text
> It's able to check whether a CFQ group on a service tree by > checking "cfqg->rb_node". There's no need to maintain an > extra flag here. > > Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> > Acked-by: Vivek Goyal <vgoyal@redhat.com>
Looks good to me. Acked-by: Vivek Goyal <vgoyal@redhat.com> Vivek
quoted text
> --- > block/cfq-iosched.c | 5 +---- > 1 files changed, 1 insertions(+), 4 deletions(-) > > diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c > index e18d316..5d0349d 100644 > --- a/block/cfq-iosched.c > +++ b/block/cfq-iosched.c > @@ -179,7 +179,6 @@ struct cfq_group { > /* group service_tree key */ > u64 vdisktime; > unsigned int weight; > - bool on_st; > > /* number of cfqq currently on this group */ > int nr_cfqq; > @@ -863,7 +862,7 @@ cfq_group_service_tree_add(struct cfq_data *cfqd, struct cfq_group *cfqg) > struct rb_node *n; > > cfqg->nr_cfqq++; > - if (cfqg->on_st) > + if (!RB_EMPTY_NODE(&cfqg->rb_node)) > return; > > /* > @@ -879,7 +878,6 @@ cfq_group_service_tree_add(struct cfq_data *cfqd, struct cfq_group *cfqg) > cfqg->vdisktime = st->min_vdisktime; > > __cfq_group_service_tree_add(st, cfqg); > - cfqg->on_st = true; > st->total_weight += cfqg->weight; > } > > @@ -896,7 +894,6 @@ cfq_group_service_tree_del(struct cfq_data *cfqd, struct cfq_group *cfqg) > return; > > cfq_log_cfqg(cfqd, cfqg, "del_from_rr group"); > - cfqg->on_st = false; > st->total_weight -= cfqg->weight; > if (!RB_EMPTY_NODE(&cfqg->rb_node)) > cfq_rb_erase(&cfqg->rb_node, st); > -- > 1.6.5.2 >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] cfq-iosched: Get rid of on_st flag
, Gui Jianfeng
, (Tue Nov 30, 1:41 am)
Re: [PATCH] cfq-iosched: Get rid of on_st flag
, Vivek Goyal
, (Tue Nov 30, 7:23 am)
Re: [PATCH] cfq-iosched: Get rid of on_st flag
, Jens Axboe
, (Tue Nov 30, 12:53 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate