[dm-devel] [RFC PATCH 1/2] percpu_ref: add percpu_ref_tryget_many_live

Bart Van Assche bvanassche at acm.org
Thu Apr 15 19:50:43 UTC 2021


On 4/15/21 3:33 AM, Ming Lei wrote:
>  /**
> - * percpu_ref_tryget_live - try to increment a live percpu refcount
> + * percpu_ref_tryget_many_live - try to increment a live percpu refcount
>   * @ref: percpu_ref to try-get
> + * @nr: number of references to get

You may want to change "increment" into "increase" to make it more clear
that this function may increase the percpu refcount by more than one.

Anyway:

Reviewed-by: Bart Van Assche <bvanassche at acm.org>




More information about the dm-devel mailing list