Re: [PATCHSET] block, mempool, percpu: implement percpu mempool andfix blkcg percpu alloc deadlock
From: KAMEZAWA Hiroyuki
Date: Mon Dec 26 2011 - 01:07:36 EST
On Thu, 22 Dec 2011 21:56:29 -0500
Vivek Goyal <vgoyal@xxxxxxxxxx> wrote:
> On Thu, Dec 22, 2011 at 05:58:34PM -0800, Andrew Morton wrote:
> > On Thu, 22 Dec 2011 20:40:43 -0500 Vivek Goyal <vgoyal@xxxxxxxxxx> wrote:
> > > That's why the need of per cpu data structures to make stat collection
> > > lockless.
> > btw, (and this is a common refrain): was there any reason for avoiding
> > using percpu_counters here?
> Frankly speaking I did not consider that. I will look into it (/me needs
> to read up a bit on per cpu counter and look at code examples).
Hm, how about this kind of delayed initialization ?
== this patch is untested. just for sharing idea ==