Re: [PATCH 8/9] percpu_ref: add PERCPU_REF_INIT_* flags

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:17AM -0400, Tejun Heo wrote: > With the recent addition of percpu_ref_reinit(), percpu_ref now can be > used as a persistent switch which can be turned on and off repeatedly > where turning off maps to killing the ref and waiting for it to drain; > however, there

Re: [PATCH 8/9] percpu_ref: add PERCPU_REF_INIT_* flags

2014-09-23 Thread Kent Overstreet
On Tue, Sep 23, 2014 at 01:55:17AM -0400, Tejun Heo wrote: With the recent addition of percpu_ref_reinit(), percpu_ref now can be used as a persistent switch which can be turned on and off repeatedly where turning off maps to killing the ref and waiting for it to drain; however, there

[PATCH 8/9] percpu_ref: add PERCPU_REF_INIT_* flags

2014-09-22 Thread Tejun Heo
With the recent addition of percpu_ref_reinit(), percpu_ref now can be used as a persistent switch which can be turned on and off repeatedly where turning off maps to killing the ref and waiting for it to drain; however, there currently isn't a way to initialize a percpu_ref in its off (killed and

[PATCH 8/9] percpu_ref: add PERCPU_REF_INIT_* flags

2014-09-22 Thread Tejun Heo
With the recent addition of percpu_ref_reinit(), percpu_ref now can be used as a persistent switch which can be turned on and off repeatedly where turning off maps to killing the ref and waiting for it to drain; however, there currently isn't a way to initialize a percpu_ref in its off (killed and