[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1eca92c0-9dc8-42fd-8149-390fcb91f4f6@kernel.org>
Date: Wed, 12 Feb 2025 06:36:16 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Bjorn Helgaas <helgaas@...nel.org>
Cc: Thippeswamy Havalige <thippeswamy.havalige@....com>,
linux-pci@...r.kernel.org, kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>, devicetree@...r.kernel.org,
Rob Herring <robh@...nel.org>,
Bharat Kumar Gogada <bharat.kumar.gogada@....com>,
Bjorn Helgaas <bhelgaas@...gle.com>, Conor Dooley <conor+dt@...nel.org>,
Jingoo Han <jingoohan1@...il.com>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
Michal Simek <michal.simek@....com>, Peter Zijlstra <peterz@...radead.org>
Subject: Re: [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver
On 12/02/2025 00:16, Bjorn Helgaas wrote:
> On Fri, Feb 07, 2025 at 07:39:03AM +0100, Markus Elfring wrote:
>>> I don't *really* like guard() anyway because it's kind of magic in
>>> that the unlock doesn't actually appear in the code, and it's kind of
>>> hard to unravel what guard() is and how it works. But I guess that's
>>> mostly because it's just a new idiom that takes time to internalize.
>>
>> How will the circumstances evolve further for growing applications of
>> scope-based resource management?
>
> I'm sure it will evolve to become the typical style. Right now, it's
> not quite there yet, as evidenced by the fact that the only reference
> to them in Documentation/ is this somewhat ambivalent note:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/maintainer-netdev.rst?id=v6.13#n380
>
> We do already have a few uses of guard() and scoped_guard() in
> drivers/pci, and I don't really object to more, including in this
> amd-mdb case. Whatever we do, I *would* want to do it consistently
> throughout the file.
Bjorn,
There is little point in discussing anything with Markus. It's a person
known to waste our time.
Best regards,
Krzysztof
Powered by blists - more mailing lists