]> 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)
commitec5be9d92311d360d3788328097559b2d6626373
tree6210abc5d6f4f1a3d2d31c15e0b5fb4e008ae865
parent787bad5520a5bfff2b80a030cd512ef0f82690db
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