Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp146992rdh; Tue, 13 Feb 2024 12:05:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeR70R3oCce4aADi6efxRwIUlaZmuUatDMWPrKg22fsMWgLIdT3eetugEmvKduwwlK6zqIEsCAqLRoLU47ANhSwgnHrXzbtc0anC2Meg== X-Google-Smtp-Source: AGHT+IHfPu1tTEqn68hNSQO0//UzQhNp6kDxhPGivUyqaISjm9zqDP2R3+VAAXHmEAPmoJQGFyxc X-Received: by 2002:aa7:86d0:0:b0:6d9:b941:dbf5 with SMTP id h16-20020aa786d0000000b006d9b941dbf5mr266521pfo.11.1707854738826; Tue, 13 Feb 2024 12:05:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707854738; cv=pass; d=google.com; s=arc-20160816; b=TSLP6TYgeKN4aK+TiV2ZDZsJdSb92Wvw59Q1HTNZaDrhW49qjeggzgamazeGofMNfU 8NMWn04ZmbZiaje8KGB6QQXUNHjQBglhkY0Bku2ezxKezh6z58edrjjUdx8YeLatfLyU cIu2rGRbltieHbB/XR+8UelM8zpWFcJYeKZlf8T70KnUCrFz3kxXg97FZ3GLbL7QkQ3p 8bw/07EZUi4XDH4YMegDptdJaDw42gl5u0EgzwZo4T90GHHHz5IOyGZRgL+yjFpgB/Om ZDQoEVn4HGiFzQ0JbLdDaERBh024xG4bvez8nVPJuEX11uslSc6GfG6UMc7ymwop9Xsf Qe2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UNSsOHXwwYF6F5NmG9Is3Y+QRkHZnX9jcK1XI1d7oCg=; fh=E/2LxscP6362KLQZN3EPq+dkvPl1peMjxnMjOKX45aE=; b=xHpXOIy6USmlclirEtOA5GniYdbQ3S20uq5hKcUBw1X2jD52DaURKv+w6mwndEN8WX P6BR88vUePWPR2CKJDVKmLEtNPuIL9EPSxPepxmOvkCLrQUmmy1C5iV+4it0rE23vd9j aI1Kl7kYmXRCAnnX9O6myhHl1FbpqRBzOfzUAhRw/Aii7j7Iz4gVtX9KhYttEz4j0ypN YA7LvMEzKmhB7bnd/TFeZ8JZbQFLFIZXxGHx9rJrxX34LXl58kf3i20vdrTaLgj/HF8X ADdJvXpkZpf2r/WHiKPkAm0kG65T924pVl/hlB6cl61IOFM+R7NzYe8BRu2qiPfXcrL/ Roaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=FdhVOZwn; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-64190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64190-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com X-Forwarded-Encrypted: i=2; AJvYcCVIm58hRFz8Gvv9KZpIsOMwBMJXFW+SXXHmqPE5hFq6GDpgiHEeM7ACR0sAXkMeXstuu/J0nqEEzxlJKumlausHismqenpmFfjG8Xp/qA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m19-20020a056a00081300b006e0d3db5fb9si4416043pfk.92.2024.02.13.12.05.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 12:05:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=FdhVOZwn; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-64190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64190-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 66214B282BD for ; Tue, 13 Feb 2024 19:46:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D0C860907; Tue, 13 Feb 2024 19:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="FdhVOZwn" Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D14360DC2; Tue, 13 Feb 2024 19:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.114.26.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707853577; cv=none; b=aIttM3m1+kc3iT88OoEFgQ0U8UouADl54ujP7HddjUe/HCghPFd5T24T7PBhVQIjxRtfGvBYeQ30AVGdX6bOCXkJONiAd/9hXzs2gFaj56Bs6TdcVZa7ZCOTg+X1v9KDUfzYYaYG7QvkT75qLXFyovZNTEUY7tBWLUB4adMbbcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707853577; c=relaxed/simple; bh=91fMcwc23t/9Ue36JL2amNbWqAs6AjesdadtoLuKu0M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Fw2v3f/n35s4vkq05zMvRyifsJtQYSdxOaCOdaRISvYL61cwJIUnLKNlk4HKCPHG4epS7/PkZdxtQedRf5s+LZV6WW8xBHGVCSbUCd7MExx1yCItKIv3FxNCYVNZZGG6K3vtr1wRvSG0m6BxDoUw8BMJgj+RjgARKcyRPtYFeQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=FdhVOZwn; arc=none smtp.client-ip=167.114.26.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1707853565; bh=91fMcwc23t/9Ue36JL2amNbWqAs6AjesdadtoLuKu0M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FdhVOZwnEphOvwoVCm/OLjFElpH0U2cr0/fOq2wMSCpthaCO33T56W6XQ4mQiOUhe SX2qxP+8yLW9KYYxyqxWi2J5VQv5bfpYrsWxwzfnaWwWiEDDvXarA+Z3spkl8GOhfv gAZmKFyTk31OtlM/cGs+Z7j1P4Xl3jrfRgoxV6XSbAucQ1qdmLAqfJqL9h7n2igwRv /lv+D8Nm6bI+wjjfL4io04GN7Lo4fU8FOJ2Lo2uJXk2jSd5rRT+vE8/aZlO2nbuffk az9OgSu5jDtvYnxfk832jOr2vqOKLTK/ZQQ/Zqpmopd4D0XQTwtqTOtI41nj3XlSFR Sj1mzC+AAMlZQ== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4TZBdn2yXnzYPf; Tue, 13 Feb 2024 14:46:05 -0500 (EST) Message-ID: Date: Tue, 13 Feb 2024 14:46:05 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 5/8] virtio: Treat alloc_dax() -EOPNOTSUPP failure as non-fatal Content-Language: en-US To: Lukas Wunner , Greg Kroah-Hartman Cc: Dan Williams , Arnd Bergmann , Dave Chinner , linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds , Vishal Verma , Dave Jiang , Matthew Wilcox , Russell King , linux-arch@vger.kernel.org, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, dm-devel@lists.linux.dev, nvdimm@lists.linux.dev, linux-s390@vger.kernel.org, Alasdair Kergon , Mike Snitzer , Mikulas Patocka References: <20240212163101.19614-1-mathieu.desnoyers@efficios.com> <20240212163101.19614-6-mathieu.desnoyers@efficios.com> <20240213062559.GA27364@wunner.de> From: Mathieu Desnoyers In-Reply-To: <20240213062559.GA27364@wunner.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-02-13 01:25, Lukas Wunner wrote: > On Mon, Feb 12, 2024 at 11:30:58AM -0500, Mathieu Desnoyers wrote: >> In preparation for checking whether the architecture has data cache >> aliasing within alloc_dax(), modify the error handling of virtio >> virtio_fs_setup_dax() to treat alloc_dax() -EOPNOTSUPP failure as >> non-fatal. >> >> Co-developed-by: Dan Williams >> Signed-off-by: Dan Williams >> Fixes: d92576f1167c ("dax: does not work correctly with virtual aliasing caches") > > That's a v4.0 commit, yet this patch uses DEFINE_FREE() which is > only available in v6.6 but not any earlier stable kernels. I asked this question to Greg KH before creating this patch, and his answer was to implement my fix for master, and stable kernels would take care of backporting all the required dependencies. Now if I look at latest 6.1, 5.15, 5.10, 5.4, 4.19 stable kernels, none seem to have include/linux/cleanup.h today. But I suspect that sooner or later relevant master branch fixes will require stable kernels to backport cleanup.h, so why not do it now ? Thanks, Mathieu > > So the Fixes tag feels a bit weird. > > Apart from that, > Reviewed-by: Lukas Wunner -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com