- Subject: Re: [PATCH, v7] cgroups: introduce timer slack controller
- From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- Date: Thu, 3 Mar 2011 08:34:25 +0100 (CET)
- Cc: "Kirill A. Shutsemov" <kirill@xxxxxxxxxxxxx>, Paul Menage <menage@xxxxxxxxxx>, containers@xxxxxxxxxxxxxxxxxxxxxxxxxx, jacob.jun.pan@xxxxxxxxxxxxxxx, Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Matt Helsley <matthltc@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linux-api@xxxxxxxxxxxxxxx
- In-reply-to: <4D6F3C5B.8020307@xxxxxxxxxxxxxx>
- References: <1299084001-3916-1-git-send-email-kirill@xxxxxxxxxxxxx> <1299084001-3916-2-git-send-email-kirill@xxxxxxxxxxxxx> <alpine.LFD.2.00.1103021912090.2701@xxxxxxxxxxxxxxxxxxxxxxx> <4D6F3C5B.8020307@xxxxxxxxxxxxxx>
- User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
On Thu, 3 Mar 2011, Li Zefan wrote:
> >> +unsigned long get_task_timer_slack(struct task_struct *tsk)
> >> +{
> >> + struct cgroup_subsys_state *css;
> >> + struct tslack_cgroup *tslack_cgroup;
> >> + unsigned long ret;
> >> +
> >> + rcu_read_lock();
> >
> > Did you just remove the odd comment or actually figure out why you
> > need rcu_read_lock() here ?
> >
>
> It's necessary to protect against task exiting or task moving between cgroups.
I know, though after the last review I wanted to make sure, that the
author understands it as well and not just removed the odd comment
just because I ranted about it :)
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Home]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]