Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp388961rdh; Tue, 13 Feb 2024 23:00:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWl7DP0yLN7w+A4VudCkSiqGTLwf7Oexi6nCvPjZxXTI31I8PQzx52X/xNrZyLp7x4F2KOOX6K2bjcWUKK+hVySM8YNc/rsfSnOxKW4qA== X-Google-Smtp-Source: AGHT+IF1gmORQ1glDwBtrjlWp9DrLb/B+TxTcN4nMj0HetK33d8fyYydcTfwTHblOfIupdVjRJ49 X-Received: by 2002:a05:620a:3728:b0:785:504a:88e2 with SMTP id de40-20020a05620a372800b00785504a88e2mr2223398qkb.66.1707894004267; Tue, 13 Feb 2024 23:00:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707894004; cv=pass; d=google.com; s=arc-20160816; b=HQ4xb5rquGkJllElAv/NBYl1fpw7nZv60novsIARwRQd13kwgzjdsDVvB3O6TTOKvL wVgdqqaZG8pBpFo2dcPwBusC8bCjfFIZplJkzPq3mllhNnxP7YSb34MgZHHGEwHMgN+s 29D5t9tgnRCFjijsFbPawbv4LFfjQS0editCt0vcKFB4nHp+XH/b39whYPUWkL80f/xf 2vk0WXWCsoR9YrRywJ0lc/PVhmMciNcpVS5b1fTbezQAqrLPGdGkF5D5uukLiqZG60Fg IELxylY8aI0PGaRWmod6L42vTbxS1kvIc2xfZlL0DongBR1xukbWPlauQbwmh7BdqMpv idKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ril9mg8Dj7XrN9wzpc8gCKAKYMby9fpQxW/AFGXm1Ek=; fh=5i0rP3ApEcidZUgEpyzZHXrnJAtQMeDi7j7IxOPeeDs=; b=omGHI9iRFRCCb6UwMPARzR/rBppYsTYtAoRHJA1BfgQIkq5yQeZ+QSUbQh0lzTxput ry6cQx1XCVfP04IhY6KAZs8MoGripuYkniw2stialmX0Mmgm6Hj7GNJbIbfmhat0KIU8 S10++NqMbE7ua9MmG6I4cKKSf0BUbBCWx1Iy6GjGPb8NeRUFoAFajLf+vYmTj3lmCW+S kiuQDZIV7AmNQdvK9fky06yck+fbkLbCbKKoZ+svUpwzqovIW4vl2gAs5fi8iHD/iA5k 6Cs6Bv1haL1/PGzuJoTua/lE3AFEwFdWGHdMVu503XJyLawXt+OULhzyduv3mGDWbwCe 7eAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qh9Rk2Fv; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-64814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCWCDeoP6ex+R4GmQAEwUs8DMyAS8N2QU2ruRU/xF6nf5u+uFl/+klz4jRgw1bagJDHu5LwjXIiqQCsK/PHQYItd/9nZrQ6mhZOaSlufaQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s14-20020a05622a178e00b0042c7e0e8055si4945396qtk.414.2024.02.13.23.00.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 23:00:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qh9Rk2Fv; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-64814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D98111C25D5A for ; Wed, 14 Feb 2024 07:00:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6FB611C80; Wed, 14 Feb 2024 06:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qh9Rk2Fv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D2085125A1; Wed, 14 Feb 2024 06:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707893984; cv=none; b=JGSSlGFhmus0PIpEUaZRTEajGYxa/jHMx4T6yK2M2cjYkCSGd6BUPvgFFrjuGm9Yfw5WjhmgcvD7fNyJhW8ESbHcfbP8zMIHSfXFNTJ8n7ZzlQKwjmbf95KeM1H9mBnqt/GWlkSuVgK2ZFJJa2YfsKQJcx3G59SwREh+zmsr9pk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707893984; c=relaxed/simple; bh=CS45QcVTT2orYhyYWwHGZgci25zetj2poa2oQoA+Qkw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RGHrBSfAfFmo/Fi5VSE/J2NkvFDgBw1/wlO6DdD2K/lKay8QLwf5xcXhJ3y9NtuvmHKT7OJtM7wOD5PAiWdJifsDCTBJk9Y48HGnfb5At/rVZQrUinJyhiS8Pp1RDpCfJvARZYKrcLZeWgiuFnQ7D8888nDXBtH8FVy/xKCRLic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qh9Rk2Fv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0546CC433C7; Wed, 14 Feb 2024 06:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707893983; bh=CS45QcVTT2orYhyYWwHGZgci25zetj2poa2oQoA+Qkw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qh9Rk2FvW4tWlAWdz0iYDcgsCcNhqHDodBRSm2Ahxxogpbd+1FwGwI+oPZPtk2YXt XcXI3kcrT2Gc0TKHUFNK3hQ0VqgTtmfEUjPtLuhjJbnNo+2z2YAQHtrghbVMCMzSeQ XyffkRKeIyHUohBlM/+8e3ex4T2LzDh/eVeZQjc8= Date: Wed, 14 Feb 2024 07:59:40 +0100 From: Greg Kroah-Hartman To: Mathieu Desnoyers Cc: Lukas Wunner , 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 Subject: Re: [PATCH v5 5/8] virtio: Treat alloc_dax() -EOPNOTSUPP failure as non-fatal Message-ID: <2024021418-diving-subduing-6e34@gregkh> References: <20240212163101.19614-1-mathieu.desnoyers@efficios.com> <20240212163101.19614-6-mathieu.desnoyers@efficios.com> <20240213062559.GA27364@wunner.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Feb 13, 2024 at 02:46:05PM -0500, Mathieu Desnoyers wrote: > 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. That is correct. > 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 ? Yes, eventually we will need to backport cleanup.h to the older kernel trees, I know of many patches "in flight" that are using it, so it's not unique to this one at all, so this is fine to have. Remember, make changes for Linus's tree, don't go through any gyrations to make things special for stable releases, that's something to only consider later on, if you want to. stable kernels should have no affect on developers OTHER than a simple cc: stable tag on stuff that they know should be backported, unless they really want to do more than that, that's up to them. thanks, greg k-h