]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2e25c107b74a9e2ac43fb93a077a7ec98e6a4a5
tree8e8eb1b2959b724ea9d92b34f5b03fb9829f729d
parentbad805556e8bf0610c1d4656b30acdbbf4dc935a
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