]> git.baikalelectronics.ru Git - kernel.git/commit
percpu-refcount: Introduce percpu_ref_resurrect()
authorBart Van Assche <bvanassche@acm.org>
Wed, 26 Sep 2018 21:01:07 +0000 (14:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 26 Sep 2018 21:11:29 +0000 (15:11 -0600)
commit912791d4fc0bec5e5836f3a7112dfe87325a9049
tree6210abc5d6f4f1a3d2d31c15e0b5fb4e008ae865
parent5e37c7068b92dec2a21eb5206dcec59268776464
percpu-refcount: Introduce percpu_ref_resurrect()

This function will be used in a later patch to switch the struct
request_queue q_usage_counter from killed back to live. In contrast
to percpu_ref_reinit(), this new function does not require that the
refcount is zero.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jianchao Wang <jianchao.w.wang@oracle.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/percpu-refcount.h
lib/percpu-refcount.c