Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp438459ybl; Wed, 11 Dec 2019 22:04:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwblA9s2HbAhXNEjz8rOdKaHM3ziZ1helzc1OphuImhS0EL9+zAvUvZEONPkA8ZSjifBNRO X-Received: by 2002:a9d:7e99:: with SMTP id m25mr6053290otp.212.1576130687356; Wed, 11 Dec 2019 22:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576130687; cv=none; d=google.com; s=arc-20160816; b=cMpN5Hk+8L6MPy3BmwabQHeGGsdMFE1FSvMAiaGKFUXpXBMcegDbBezSuD7EMwn/8S tlsBG0/BSWMNooZM/L0HgYLsFptBqWa7anue6GQSdAPpryOzupFmzblenlQg2E1gHgdQ j9yzP8J4nWBwD2GXjJBit7FsYylNW8yrktXlvUpieDLEQowLI6yjhQrD8B3xpUs8uqcM jQgyE3p9a2vhIl4jWwsI8WfZ4spAgl0cOUJvf/hTguXPHQj1KUyEi7m6PSK50BXlsym7 c+SOEd/PAnxIugQPLhTFr7oAE9t5dKYajouutMID6JNt1kNxT7gnoJvetCN7JKj9P6uQ rprw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0YjlGtWOQb/QsrGpN0IH2mMeq03UJk/qgbMOo8LXP/s=; b=H4yGY6JsjnhboarZUsj6dLxzpWuRqYQVK58nvMBBc0eAcfiqxhvVeqKleKNj0HAG/6 wWDZr5oPgOuliIVecvAH2WaZMPR5vsglCb0nLBuTstwPLLsPw/Cfmkp/BWNt9PrQt/XB Yd2mItiwahbGF7RAvEgk+glbnow9h+q690SY/4fs2HWside0Rn2XEPIgysuHdSN6iYNm FPeNaVuQ3D+IdHoDfF4EQ1BCBk1GqMKxPeLa+iTE+DzKOQF7hAnSFj3HRaUG7WlfeT4w wdQBd6WHKbMdXkj7zHIylcXUTo5dIpplAuxhw57zxP4l2JTRxZkrFj6iJsyAljetcU0L mhMA== 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 l8si2582259oii.249.2019.12.11.22.04.34; Wed, 11 Dec 2019 22:04:47 -0800 (PST) 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 S1727935AbfLLGCV (ORCPT + 99 others); Thu, 12 Dec 2019 01:02:21 -0500 Received: from mx2.suse.de ([195.135.220.15]:59902 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726907AbfLLGCV (ORCPT ); Thu, 12 Dec 2019 01:02:21 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3FC70AD20; Thu, 12 Dec 2019 06:02:19 +0000 (UTC) Subject: Re: [PATCH v3 2/4] xenbus: limit when state is forced to closed To: Paul Durrant , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Boris Ostrovsky , Stefano Stabellini References: <20191211152956.5168-1-pdurrant@amazon.com> <20191211152956.5168-3-pdurrant@amazon.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <61622e02-9cdc-03bc-b107-f3d1e6ff0fb9@suse.com> Date: Thu, 12 Dec 2019 07:02:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191211152956.5168-3-pdurrant@amazon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.12.19 16:29, Paul Durrant wrote: > If a driver probe() fails then leave the xenstore state alone. There is no > reason to modify it as the failure may be due to transient resource > allocation issues and hence a subsequent probe() may succeed. > > If the driver supports re-binding then only force state to closed during > remove() only in the case when the toolstack may need to clean up. This can > be detected by checking whether the state in xenstore has been set to > closing prior to device removal. > > NOTE: Re-bind support is indicated by new boolean in struct xenbus_driver, > which defaults to false. Subsequent patches will add support to > some backend drivers. > > Signed-off-by: Paul Durrant Reviewed-by: Juergen Gross Juergen