[Cluster-devel] [RFC 0/2] refcount: attempt to avoid imbalance warnings

Linus Torvalds torvalds at linux-foundation.org
Thu Jun 30 16:34:10 UTC 2022


On Thu, Jun 30, 2022 at 6:59 AM Alexander Aring <aahringo at redhat.com> wrote:
>
> I send this patch series as RFC because it was necessary to do a kref
> change after adding __cond_lock() to refcount_dec_and_lock()
> functionality.

Can you try something like this instead?

This is two separate patches - one for sparse, and one for the kernel.

This is only *very* lightly tested (ie I tested it on a single kernel
file that used refcount_dec_and_lock())

                Linus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparse.patch
Type: text/x-patch
Size: 2345 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20220630/eec69d2f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel.patch
Type: text/x-patch
Size: 2002 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20220630/eec69d2f/attachment-0001.bin>


More information about the Cluster-devel mailing list