Re: [PATCH] ceph: fix deadlock bugs by making iput() calls asynchronous
From: Max Kellermann
Date: Wed Sep 17 2025 - 09:27:38 EST
On Wed, Sep 17, 2025 at 3:14 PM Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
> Given that this is a reliability fix I would forego optimizations of the sort.
Thanks, good catch - I guess I was trying to be too clever. I'll
remove the "n" parameter and just do atomic_add_unless(), like btrfs
does. That makes sure 0 is never hit by my own code.