[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240822025952.GA32067@lst.de>
Date: Thu, 22 Aug 2024 04:59:52 +0200
From: Christoph Hellwig <hch@....de>
To: Sergei Shtylyov <sergei.shtylyov@...il.com>
Cc: Michael Ellerman <mpe@...erman.id.au>, cassel@...nel.org,
dlemoal@...nel.org, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
hch@....de, linux-ppc@...la.no, vidra@...l.mff.cuni.cz
Subject: Re: [PATCH v2] ata: pata_macio: Use WARN instead of BUG
On Thu, Aug 22, 2024 at 12:13:52AM +0300, Sergei Shtylyov wrote:
> On 8/20/24 6:04 AM, Michael Ellerman wrote:
>
> > The overflow/underflow conditions in pata_macio_qc_prep() should never
> > happen. But if they do there's no need to kill the system entirely, a
> > WARN and failing the IO request should be sufficient and might allow the
> > system to keep running.
>
> WARN*() can kill your system with panic_on_warn -- Android is particularly
> fond of this kernel parameter but I guess it's not your case... :-)
> Greg KH usually advices against using these macros. :-)
And in this case he is simply totally wrong. The whole poing of WARN_ON
is to have a standardized way to assert conditions.
Powered by blists - more mailing lists