Re: [PATCHSET percpu/for-3.18] percpu_ref: implement switch_to_atomic/percpu()

2014-09-24 Thread Tejun Heo
On Tue, Sep 23, 2014 at 01:55:09AM -0400, Tejun Heo wrote: > 0001-percpu_ref-relocate-percpu_ref_reinit.patch > 0002-percpu_ref-minor-code-and-comment-updates.patch > 0003-percpu_ref-replace-pcpu_-prefix-with-percpu_.patch > 0004-percpu_ref-rename-things-to-prepare-for-decoupling-p.patch > 000

[PATCHSET percpu/for-3.18] percpu_ref: implement switch_to_atomic/percpu()

2014-09-22 Thread Tejun Heo
Hello, Over the past several months, percpu_ref grew use cases where it's used as a persistent on/off switch which may be cycled multiple times using percpu_ref_reinit(). One of such use cases is blk-mq's mq_usage_counter which tracks the number of in-flight commands and is used to drain them. U