Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1494744imm; Fri, 7 Sep 2018 00:57:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaGMvS/bj9QNtfnxgWO0FV61+TIz4yofRZsTjBT2PRz5Y8StDD1vx0d8l3XanUFLQSfPGFn X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr6941583pgh.293.1536307044813; Fri, 07 Sep 2018 00:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536307044; cv=none; d=google.com; s=arc-20160816; b=tgHz7obMjbfPc1Y6onDJ+lmm7z7v1+jCAvvu+08K8Y6gfYoiqS87wkkgn5VxrFUJYs FDAIsRTL+9KwtIyJKHMG2545kzUgXFgOuilQFT5zfgZS393TgLGHup2x8f+h0lLJx8fE +02J/v4GTx4Og/Xm7JJcw8csVT4tfmyqZ42JFkhLq8IOn3XG/YXC8bY2EovDsWnDAV72 1NHjbdkxca7h/xHffx+xwNbRFWh2Q/ayMUGn+eHViq2AaSYbPd8/4dCkZLw5Ee7Li4ok 03P5p2hhYg/ynM5x2SMa4xb3CCoPyL2qT0qPVW506ypjCF85puTNxrbnp3QLXnBhCI4P Gi1A== 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=7TzadO6zqnqRy484kD6K7JbgryiQrRrdKaoBYLJndto=; b=wWEWPfPsXsd828T7Y5ysoi1Tt8LLSHyChichMqyTiqNsVpged8EW7heoF2OS74EqQl ei/aHE7uKWVXFocKW6TsOS0NJBlahP4b1IYz/ALZOvDPnjFvrbLPlJm4LaORzVRd8jru WnZXDhWYAHK3nnAus5qOIJ2vEzIx0KDsoC3gyeoENMxnMQW6uZu24dyb9HdmfGx05KEl U0VVRaQZWKYsRN2RUwie+FLUM2s2H38RriP3nKCTlyAXSU2g9sDpLMkVOMikHQI3xb4t 6jweb1OElUlP9Z7RW4kBUriPa7PHjxGB7KfCgCC57IW4jh7Id2iw83arBmTUoF0RODZJ ga1Q== 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 i12-v6si7931597pgr.267.2018.09.07.00.57.08; Fri, 07 Sep 2018 00:57:24 -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 S1727975AbeIGMer (ORCPT + 99 others); Fri, 7 Sep 2018 08:34:47 -0400 Received: from smtp.eu.citrix.com ([185.25.65.24]:8585 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727956AbeIGMer (ORCPT ); Fri, 7 Sep 2018 08:34:47 -0400 X-IronPort-AV: E=Sophos;i="5.53,341,1531785600"; d="scan'208";a="78688784" Date: Fri, 7 Sep 2018 09:54:55 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Valentin Vidic CC: Konrad Rzeszutek Wilk , Jens Axboe , , , , , Subject: Re: [PATCH] xen-blkback: Switch to closed state after releasing the backing device Message-ID: <20180907075455.szxahgevvlmfjvwy@mac.bytemobile.com> References: <20180829065214.23546-1-Valentin.Vidic@CARNet.hr> <20180905103649.edugijsjx4v2fbxd@mac.bytemobile.com> <20180905113515.GU26705@gavran.carpriv.carnet.hr> <20180905162801.GB26705@gavran.carpriv.carnet.hr> <20180906162932.7qge5dmrgyqbmbbj@mac.bytemobile.com> <20180906221929.GZ26705@gavran.carpriv.carnet.hr> <20180907071530.te5dxdvg4zqgqscj@mac.bytemobile.com> <20180907072319.GA26705@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: <20180907072319.GA26705@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 07, 2018 at 09:23:19AM +0200, Valentin Vidic wrote: > On Fri, Sep 07, 2018 at 09:15:30AM +0200, Roger Pau Monn? wrote: > > I'm not sure that's a good idea, there are a lot of backends (apart > > from blkback), and the tools won't know whether a specific backend > > supports such state or not. Also the current protocol and states are > > shared between all the Xen PV devices, so new additions should be > > considered very carefully. > > Sure, I understand. > > > IMO the best options are either calling vbd_free/vbd_create at proper > > stages in blkback or changing the hotplug script so it waits for the > > device to have no open clients. > > Changing the block-drbd script would be ideal for me too, but I don't > think that piece of DRBD state is exposed at the moment. Then I'm afraid you will have to look into the vbd_free/create fix. Thanks, Roger.