Re: [PATCH 5/5] blk-cgroup: Fix an RCU warning in blkiocg_create()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vivek Goyal
Date: Thursday, April 22, 2010 - 7:31 am

On Thu, Apr 22, 2010 at 05:32:28PM +0800, Li Zefan wrote:

IIUC, so blkiocg_create() is being called with cgroup_mutex held and not
with rcu read lock held. Hence rcu_dereference() in css_depth() gives
warning.

So one easy solution is to don't use css_depth() at all. In this case
simple check like cgroup->top_cgroup should suffice. Makese sense to
me.

Acked-by: Vivek Goyal <vgoyal@redhat.com>

Thanks
Vivek

--
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 5/5] blk-cgroup: Fix an RCU warning in blkiocg_ ..., Vivek Goyal, (Thu Apr 22, 7:31 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)