Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp269784pxb; Wed, 20 Jan 2021 06:43:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJybDsMxy1oytAA3K+uWZj2pr9LvVHmOOlH0P8L4khQXrAZZbWFOkRMcN9fBeJoxdvWw2RdN X-Received: by 2002:a17:906:3101:: with SMTP id 1mr6483584ejx.115.1611153832569; Wed, 20 Jan 2021 06:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611153832; cv=none; d=google.com; s=arc-20160816; b=mFkz9EsA9SnXWnGi+Hat3HDZsYWPBf5VJrOgv3U5QZlZMrzsR242q3XIHI9Er3hTPJ jX4xbwIj6BLdrNU8aKaIh6J9GlwUlyJaEYkagAVlQxtURK0Ro2VqhduxjxBnMsmn5zni E01Rmv+ppLErXvD1Xq4o3V6eXzSAcFxpxhYFFaiOz7hO/Z4WEj0aqsVm+gh8Hr2fLli7 lX4Hd2b9/b9mV2fIuXN0Mvve7Spc5eD6d66FgVpqDGxY4KyiEL24eyhG0HyBKPAml1do sMjueEShomU6wLrJEXFeCWn46wmm3OdDZ8QeAnMKxq/djUps+IpUuheCFqHAWdWOiaz+ BF5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=MXsF0fqiIHWmqnkg3pyZ7W7l886Xfshgy0aqkUvrN9M=; b=y0gm00bMdIIrHYAFFlGsM5AA/YcUZDlB3ZA4w9Ks9yaicettqadxvFVSuYiifHcYni nI019MHnD6AMRE+N7bEYxZ3hE1wcKFncoV8kHJo1azpyOlvr64w+/Xvsm3tW0F3L+kr9 wmOZ/PwFLHNkeZRzpQ82huXBVsfk1RPLg/L/A1MNw0xZ1B+oH9Wr4+WSdkDHqOf7UsLC MTPAkqIR+XP4DqqqZd7uxzDpWFcpf2yaKOZiSrCpYFAA0WUQf2ITHA3Hr7FMAL1M8e4/ 9hoT49b9fTagtKVSsSySMWBytjpMbB+uru3wxEisXfySHf5mc/Kl2xfB54bigI2P0JA+ UCkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=SgfScqFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si934904edt.239.2021.01.20.06.43.18; Wed, 20 Jan 2021 06:43:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=SgfScqFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390513AbhATOkF (ORCPT + 99 others); Wed, 20 Jan 2021 09:40:05 -0500 Received: from mx2.suse.de ([195.135.220.15]:33200 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390605AbhATOjN (ORCPT ); Wed, 20 Jan 2021 09:39:13 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611153478; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MXsF0fqiIHWmqnkg3pyZ7W7l886Xfshgy0aqkUvrN9M=; b=SgfScqFzkVPkpatFXvNoftOGSRhmibBo8EDmuDZxaczYnZ7D0Ylds7dguNNbCR8TPATyiq VpVS+KWnaFc5ZsQv06Cy+kn8t3GVs9mg6/pH6JjqiA0bpknHAIlateNp6pCJDOW1P5Qb8B H6PZ26zGtiucZYmRssmXd/2U0L4p5mA= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6E31EADCD; Wed, 20 Jan 2021 14:37:58 +0000 (UTC) Subject: Re: [PATCH v2] xen-blkfront: allow discard-* nodes to be optional To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Cc: linux-kernel@vger.kernel.org, Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Konrad Rzeszutek Wilk , Jens Axboe , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, Arthur Borsboom References: <20210119105727.95173-1-roger.pau@citrix.com> <20210120143515.v2vgyhcxrhnnng6r@Air-de-Roger> From: Jan Beulich Message-ID: <83d1aca5-2637-f1f2-3006-69fc6ba76bb4@suse.com> Date: Wed, 20 Jan 2021 15:37:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210120143515.v2vgyhcxrhnnng6r@Air-de-Roger> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.01.2021 15:35, Roger Pau Monné wrote: > On Wed, Jan 20, 2021 at 03:23:30PM +0100, Arthur Borsboom wrote: >> Hi Roger, >> >> I have set up a test environment based on Linux 5.11.0-rc4. >> The patch did not apply clean, so I copied/pasted the patch manually. >> >> Without the patch the call trace (as reported) is visible in dmesg. >> With the patch the call trace in dmesg is gone, but ... (there is always a >> but) ... >> >> Now the discard action returns the following. >> >> [arthur@test-arch ~]$ sudo fstrim -v / >> fstrim: /: the discard operation is not supported >> >> It might be correct, but of course I was hoping the Xen VM guest would pass >> on the discard request to the block device in the Xen VM host, which is a >> disk partition. >> Any suggestions? > > Hm, that's not what I did see on my testing, the operation worked OK, > and that's what I would expect to happen in your case also, since I > know the xenstore keys. Does discard work on partitions (and not just on entire disks)? It's been a while since I last had anything to do with this code, so I may well misremember. Jan