From: Bart Van Assche Subject: Re: [PATCH] Avoid that a kernel warning appears during system resume Date: Sat, 16 Mar 2019 14:28:12 -0700 Message-ID: <7436af16-0e46-418f-cfec-1ae530b2a82a@acm.org> References: <20190315232758.221199-1-bvanassche@acm.org> <4337330.mz4Gj9yf0O@merkaba> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4337330.mz4Gj9yf0O@merkaba> Content-Language: en-US Sender: stable-owner@vger.kernel.org To: Martin Steigerwald Cc: "Martin K . Petersen" , "James E . J . Bottomley" , linux-scsi@vger.kernel.org, Jens Axboe , Christoph Hellwig , Hannes Reinecke , Ming Lei , Johannes Thumshirn , Oleksandr Natalenko , stable@vger.kernel.org, Jisheng Zhang List-Id: linux-scsi@vger.kernel.org On 3/16/19 3:43 AM, Martin Steigerwald wrote: > Bart Van Assche - 16.03.19, 00:27: >> Since scsi_device_quiesce() skips SCSI devices that have another state >> than RUNNING, OFFLINE or TRANSPORT_OFFLINE, scsi_device_resume() >> should not complain about SCSI devices that have been skipped. Hence >> this patch. This patch avoids that the following warning appears >> during resume: > > Am I on CC cause one of those warnings appeared in bug reports from me > from quite some time ago? Hi Martin, That's correct. I hope that you don't mind that I cc'ed you? >> WARNING: CPU: 3 PID: 1039 at blk_clear_pm_only+0x2a/0x30 >> CPU: 3 PID: 1039 Comm: kworker/u8:49 Not tainted 5.0.0+ #1 >> Hardware name: LENOVO 4180F42/4180F42, BIOS 83ET75WW (1.45 ) > > This at least does not appear to be this ThinkPad T520, as I have BIOS > version 1.49 already. The call trace in the patch description is only an example. I think the problem description and the patch applies to all systems that have one or more SCSI disks. Best regards, Bart.