Re: block/blk-zoned.c:579:5-24: WARNING: atomic_dec_and_test variation before object free at line 583.

From: Christoph Hellwig
Date: Tue Nov 05 2024 - 10:39:34 EST


On Tue, Nov 05, 2024 at 08:36:33AM -0700, Jens Axboe wrote:
> On 11/5/24 8:34 AM, Christoph Hellwig wrote:
> > On Tue, Nov 05, 2024 at 06:52:25AM +0800, kernel test robot wrote:
> >>>> block/blk-zoned.c:579:5-24: WARNING: atomic_dec_and_test variation before object free at line 583.
> >
> > Does anyone know what this warning is supposed to mean?
>
> It's supposed to mean "use refcount_t for things like this".

Have we finally resolved the performance problems with refcount_t for
fast path operations?