Re: [PATCH] md/raid5-ppl: convert pending_flushes from atomic_t to refcount_t
From: Dan Carpenter
Date: Mon Jun 22 2026 - 07:40:02 EST
On Mon, Jun 22, 2026 at 04:58:55PM +0530, Sajal Gupta wrote:
> > Heh. Yeah... There is not a chance I would merge a patch like this
> > without testing.
>
> > It also really feels like an AI patch and you're supposed to say when you
> > use AI to generate patches.
>
> I wrote the code myself. I did use Grammarly to help with my grammar and
> phrasing.
>
> I'll send a v2 with just the break fix.
Thanks.
You're right that calling atomic_dec() in a loop seems pretty suspect
as a design... But cleaning it up is risky as well.
regards,
dan carpenter