Re: [PATCHv2 1/2] refcount: introduce __refcount_dec_and_lock macro

From: Alexander Aring
Date: Thu Feb 01 2024 - 10:00:04 EST


Hi,

On Mon, Nov 13, 2023 at 3:48 PM Alexander Aring <aahringo@xxxxxxxxxx> wrote:
>
> This patch adds the __refcount_dec_and_lock macro to generate code for a
> lock specific refcount_dec_and_lock implementation. Existing
> refcount_dec_and_lock implementation are updated to use the new
> __refcount_dec_and_lock macro. In future other lock implementation can
> added to use the refcount_dec_and_lock trick to only hold the lock when
> the refcount is going to be zero. Per subsystem own lock implementation
> can use the macro as well to provide such implementation for their own
> locking type.
>

ping? :)

Any chance to bring this upstream?

- Alex