Re: [PATCHSET percpu/for-3.17] percpu: implement percpu_ref_reinit()

2014-06-28 Thread Tejun Heo
On Tue, Jun 17, 2014 at 09:07:59PM -0400, Tejun Heo wrote: > Hello, > > Currently, percpu_ref destruction - freeing the percpu counter - > happens when the percpu_ref is released. This while a bit more > convenient restricts how percpu_ref can be used. It can't be > initialized with static percp

[PATCHSET percpu/for-3.17] percpu: implement percpu_ref_reinit()

2014-06-17 Thread Tejun Heo
Hello, Currently, percpu_ref destruction - freeing the percpu counter - happens when the percpu_ref is released. This while a bit more convenient restricts how percpu_ref can be used. It can't be initialized with static percpu area and it can't be reinitialized without going through percpu alloc