Return-Path: Subject: Re: [PATCH 2/2] blk-mq: convert WARN_ON in __blk_mq_run_hw_queue to printk To: Jens Axboe , Ming Lei , linux-block@vger.kernel.org, Thomas Gleixner Cc: Christoph Hellwig , "jianchao . wang" , Stefan Haberland , Christoph Hellwig References: <20180117123444.18393-1-ming.lei@redhat.com> <20180117123444.18393-3-ming.lei@redhat.com> <39203c80-e718-3aa6-6b21-05a6bf0ad9b0@kernel.dk> From: Christian Borntraeger Date: Wed, 17 Jan 2018 17:05:46 +0100 MIME-Version: 1.0 In-Reply-To: <39203c80-e718-3aa6-6b21-05a6bf0ad9b0@kernel.dk> Content-Type: text/plain; charset=utf-8 Message-Id: List-ID: On 01/17/2018 04:46 PM, Jens Axboe wrote: > On 1/17/18 5:34 AM, Ming Lei wrote: >> We know this WARN_ON is harmless and the stack trace isn't useful too, >> so convert it to printk(), and avoid to confuse people. > > I disagree, it is useful to know the exact path it happened from, > in case it's a valid warning. It could be an inline run and > we screwed up the logic, or it could be from a workqueue and > the reason would be entirely different. Then add a dump_stack or whatever, but WARN_ON does have fatal effects for some setups. If it can happen then WARN_ON is just wrong.