Re: [PATCH v9 00/17] reimplement per-vma lock as a refcount

From: Suren Baghdasaryan
Date: Sat Jan 11 2025 - 04:46:01 EST


On Fri, Jan 10, 2025 at 8:52 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
>
> On Fri, Jan 10, 2025 at 08:25:47PM -0800, Suren Baghdasaryan wrote:
> > - Added static check for no-limit case in __refcount_add_not_zero_limited,
> > per David Laight
>
> Ugh, no, don't listen to David.

I thought his suggestion to add a check which can be verified at
compile time made sense. Could you please explain why that's a bad
idea? I'm really curious.