Re: [PATCH] blk-cgroup: Fix RCU correctness warning in cfq_init_queue()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vivek Goyal
Date: Thursday, April 22, 2010 - 4:55 pm

On Thu, Apr 22, 2010 at 04:15:56PM -0700, Paul E. McKenney wrote:

I think theoritically two instances of cfq_init_queue() can be running
in parallel (for two different devices), and they both can call
blkiocg_add_blkio_group(). But then we use a spin lock to protect
blkio_cgroup.

spin_lock_irqsave(&blkcg->lock, flags);

So I guess two parallel updates should be fine.

Thanks
Vivek

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

Messages in current thread:
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in cfq ..., Vivek Goyal, (Thu Apr 22, 4:55 pm)
Re: [PATCH] blk-cgroup: Fix RCU correctness warning in cfq ..., Paul E. McKenney, (Fri Apr 23, 12:46 pm)