From: Vivek Goyal Subject: Re: [PATCH 21/24] blkcg: make blkcg_print_blkgs() grab q locks instead of blkcg lock Date: Tue, 8 Jan 2013 13:08:04 -0500 Message-ID: <20130108180804.GC29933@redhat.com> References: <1356726946-26037-1-git-send-email-tj@kernel.org> <1356726946-26037-22-git-send-email-tj@kernel.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1356726946-26037-22-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Tejun Heo Cc: lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org, axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, ctalbott-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, rni-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org On Fri, Dec 28, 2012 at 12:35:43PM -0800, Tejun Heo wrote: > Instead of holding blkcg->lock while walking ->blkg_list and executing > prfill(), RCU walk ->blkg_list and hold the blkg's queue lock while > executing prfill(). This makes prfill() implementations easier as > stats are mostly protected by queue lock. > > This will be used to implement hierarchical stats. > > Signed-off-by: Tejun Heo Acked-by: Vivek Goyal Vivek