pcpu_ref: add percpu_ref_tryget_many()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 28 Dec 2019 11:13:02 +0000 (14:13 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:02 +0000 (17:04 -0700)
commit4e5ef02317b12e2ed3d604281ffb6b75261f7612
tree8e8eb1b2959b724ea9d92b34f5b03fb9829f729d
parentc1ca757bd6f4632c510714631ddcc2d13030fe1e
pcpu_ref: add percpu_ref_tryget_many()

Add percpu_ref_tryget_many(), which works the same way as
percpu_ref_tryget(), but grabs specified number of refs.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Dennis Zhou <dennis@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/percpu-refcount.h