Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751583AbdITWR0 (ORCPT ); Wed, 20 Sep 2017 18:17:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50498 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbdITWRY (ORCPT ); Wed, 20 Sep 2017 18:17:24 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E667E883AE Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=ming.lei@redhat.com Date: Thu, 21 Sep 2017 06:17:08 +0800 From: Ming Lei To: Martin Steigerwald Cc: Oleksandr Natalenko , Jens Axboe , Christoph Hellwig , linux-block@vger.kernel.org, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, Shaohua Li Subject: Re: I/O hangs after resuming from suspend-to-ram Message-ID: <20170920221703.GA5105@ming.t460p> References: <3926917.BCSovyVWdL@natalenko.name> <3567128.t9myNOm9ia@merkaba> <20170828133218.GB19670@ming.t460p> <2260365.vTb2K2ZmgF@merkaba> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2260365.vTb2K2ZmgF@merkaba> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 20 Sep 2017 22:17:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 43 On Wed, Sep 20, 2017 at 07:25:02PM +0200, Martin Steigerwald wrote: > Ming Lei - 28.08.17, 21:32: > > On Mon, Aug 28, 2017 at 03:10:35PM +0200, Martin Steigerwald wrote: > > > Ming Lei - 28.08.17, 20:58: > > > > On Sun, Aug 27, 2017 at 09:43:52AM +0200, Oleksandr Natalenko wrote: > > > > > Hi. > > > > > > > > > > Here is disk setup for QEMU VM: > […] > > > > > In words: 2 virtual disks, RAID10 setup with far-2 layout, LUKS on it, > > > > > then > > > > > LVM, then ext4 for boot, swap and btrfs for /. > > > > > > > > > > I couldn't reproduce the issue with single disk without RAID. > > > > > > > > Could you verify if the following patch fixes your issue? > > > > > > Could this also apply to non MD RAID systems? I am using BTRFS RAID > > > 1 with two SSDs. So far with CFQ it runs stable. > > > > It is for fixing Oleksandr's issue wrt. blk-mq, and looks not for you. > > My findings are different: > > On 4.12.10 with CONFIG_HZ=1000, CONFIG_PREEMPT=y and optimizations for Intel > Core/newer Xeon I see this: > > 1) Running with CFQ: No hang after resume > > 2) Running with scsi_mod.use_blk_mq=1 + BFQ: Hang after resume within first 1-2 > days. Hi Martin, Thanks for your report! Could you test the following patchset to see if it fixes your issue? https://marc.info/?l=linux-block&m=150579298505484&w=2 -- Ming