Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp987539imm; Fri, 14 Sep 2018 09:21:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYvXb8AStM6hdpAU1Bd/d2oz6x0MhO22WKX5Vozy2fGBUkcpG13UnQXACMrB3WDNrSMUBZe X-Received: by 2002:a63:e355:: with SMTP id o21-v6mr12750848pgj.251.1536942060352; Fri, 14 Sep 2018 09:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536942060; cv=none; d=google.com; s=arc-20160816; b=0gOvBklyLTGSf1VPjvMfJUkR1oYaeIw74HnfQ7rTv+RdFNUhQMI+lUMsDpZlxSX5A7 gxJ4HnE44i+a70UnUFjmTgMJNqtdy9tiOt0o3gOvkGVvaA017QOJmV0J2cqdr3Mb1L3o H1S58e2S/872iYNAq/yfS07Jc9i5bA2IhNOMOCzVoJbUJ6kJJW7F76LF8DTkOf8MhQON acWbgzTzPQHQQIgEMsMmRhMXaCwVjSMj4tRuB/RaeBT8IDc80LUzYjbIlVBCrUnylifM zqAO8FHhZliHeDZ4dutp8ZOA+ZLohVRpbsK0XjSxgHbl37zXOQz6L4xnM9sYw+zn1vOr WKVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6fZvN4FDR7prYZZyCZkmbof2zuT8DBMKdSJMHcjYgC4=; b=OGL1XL0PkJ7Nc0MoYJdxtbf2tZSIkBf75d4ypMjyW0yqTT/uwTfdfcJ8VcvUNu7/P7 KtdLIL8lhH8YsGPibB2LBaWyTWLq+j9s2twP9DcZTM4oJ6o8HPabP/sjqhyC/31KhN4w azDGPJtzMFsr3Lmp1wytWtPpDOXS1KD2Pak+GCmiFDXk5gbNVGYRqJ5l7ksMUNIpnZ+m I2YnxuknPg1VW6Zrvz7SKHUHhjE3uYCYw2lATbEISJ8rz/UWMbI2oR7BAV8aJUUd/A9P Mi6ptI3Dah9PixmN2dDAaw/LRJwhenuj6vpEcus4NQP/eYeyvZbivvbPVptKStrSAM4Q Nd/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19-v6si6368513pgu.285.2018.09.14.09.20.44; Fri, 14 Sep 2018 09:21:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728196AbeINVeV (ORCPT + 99 others); Fri, 14 Sep 2018 17:34:21 -0400 Received: from smtp.eu.citrix.com ([185.25.65.24]:53211 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbeINVeV (ORCPT ); Fri, 14 Sep 2018 17:34:21 -0400 X-IronPort-AV: E=Sophos;i="5.53,373,1531785600"; d="scan'208";a="79076475" Date: Fri, 14 Sep 2018 18:18:41 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Valentin Vidic CC: , Jens Axboe , Konrad Rzeszutek Wilk , , , , Subject: Re: [DRBD-user] [PATCH] xen-blkback: Switch to closed state after releasing the backing device Message-ID: <20180914161841.zqenjczqgfkycdmm@mac.bytemobile.com> References: <20180907132828.GC11834@soda.linbit> <20180907164500.GN26705@gavran.carpriv.carnet.hr> <20180907171459.GO26705@gavran.carpriv.carnet.hr> <20180908073432.GP26705@gavran.carpriv.carnet.hr> <20180910124531.GA31737@soda.linbit> <20180910132252.GE26705@gavran.carpriv.carnet.hr> <20180910150058.suxehc3uheyho4qx@mac.bytemobile.com> <20180910161831.GG26705@gavran.carpriv.carnet.hr> <20180913150800.haswzd7t2xccbgvl@mac.bytemobile.com> <20180914114951.GH2153@gavran.carpriv.carnet.hr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180914114951.GH2153@gavran.carpriv.carnet.hr> User-Agent: NeoMutt/20180716 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2018 at 01:49:51PM +0200, Valentin Vidic wrote: > On Thu, Sep 13, 2018 at 05:08:00PM +0200, Roger Pau Monn? wrote: > > So I have the following patch which I think might solve your issues > > while keeping the reset logic working. Would you mind giving it a try > > with your use case and pvgrub? > > Thanks for the patch. It seems to be having some problems with pvgrub: > machines don't boot past pvgrub and they are using 100% CPU. Also in > dom0 xenstored is usind 100% CPU - strace reports it is looping in this: > > read(26, "\\\240\0\0", 4) = 4 > read(26, "\0\0\0\0L\0\0\0)\0\0\0\35\0\0\0+\\\232`\231\31\1&", 24) = 24 > read(26, "/local/domain/0/backend/vbd/1/51712/state", 41) = 41 > read(26, "\2\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0004", 29) = 29 > read(26, "\0\330\0\0", 4) = 4 > read(26, "\0\0\0\0L\0\0\0)\0\0\0\35\0\0\0+\\JG\231\31\1&", 24) = 24 > read(26, "/local/domain/0/backend/vbd/2/51712/state", 41) = 41 > read(26, "\2\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0\0\0\1\0\0\0004", 29) = 29 > read(26, "\0\200\1\0", 4) = 4 > read(26, "\0\0\0\0L\0\0\0)\0\0\0\35\0\0\0+\\Z\373\231\31\1&", 24) = 24 > read(26, "/local/domain/0/backend/vbd/5/51712/state", 41) = 41 > read(26, "\2\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\1\0\0\0004", 29) = 29 > read(12, "\321\1\0\0", 4) = 4 > write(12, "\321\1\0\0", 4) = 4 I see the issue, blkfront in pvgrub is waiting for the backend to switch to Closed state before booting the OS kernel, so my fix is not going to work. I guess I will have to find a proper way to switch to Closed state. Thanks, Roger.