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>
Wed, 15 Jan 2020 22:05:02 +0000 (15:05 -0700)
commit8735c5c05128823bd1b75dd1cc15114a1843ed4d
treef67c018cab2a02b3b40f0965e270ecdfa550763c
parente06f240e694e62e645c4cb5604c949e0a00a5f6e
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