Re: [PATCH 3/5] sched: Fix an RCU warning in print_task()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Thursday, April 22, 2010 - 3:20 am

On Thu, 2010-04-22 at 17:30 +0800, Li Zefan wrote:

Well, that's not strictly true, but yes in this case it appears to be a
genuine race, since only tasklist_lock is held and that doesn't protect
us from the task changing groups (and thus the current group from going
away on us).

You can also pin a cgroup by holding whatever locks are held in the
->attach method. But the RCU annotation doesn't know (nor reasonably can
know about that).




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/5] sched: Fix an RCU warning in print_task(), Peter Zijlstra, (Thu Apr 22, 3:20 am)
Re: [PATCH 1/5] cgroup: Fix an RCU warning in cgroup_path(), Paul E. McKenney, (Thu Apr 22, 12:55 pm)
Re: [PATCH 2/5] cgroup: Fix an RCU warning in alloc_css_id(), Paul E. McKenney, (Thu Apr 22, 12:55 pm)
Re: [PATCH 3/5] sched: Fix an RCU warning in print_task(), Paul E. McKenney, (Thu Apr 22, 12:56 pm)
Re: [PATCH 5/5] blk-cgroup: Fix an RCU warning in blkiocg_ ..., Paul E. McKenney, (Thu Apr 22, 12:57 pm)
Re: [PATCH 4/5] freezer cgroup: Fix an RCU warning in cgro ..., Paul E. McKenney, (Thu Apr 22, 12:59 pm)
Re: [PATCH 3/5] sched: Fix an RCU warning in print_task(), Paul E. McKenney, (Thu Apr 22, 3:05 pm)