]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit18c9a6bbe0645a05172a900740b9d2d379d54320
tree6210abc5d6f4f1a3d2d31c15e0b5fb4e008ae865
parent0d25bd072b494a0290a7855a2e0286c4a0c92041
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