Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp156239rdh; Tue, 13 Feb 2024 12:25:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVSSbge3FIRUiyEOqP06E6Gk5z6jekAkSQxl5/+qlfkYVCbhX5CZWnncD0bosdRG7fU8OOEZQtGT3rLXJHe673VWwYfJ2IGE+L2nXdXA== X-Google-Smtp-Source: AGHT+IEig06QBdcJEgg34tECAvpO3lita+lU8kNUxfcNtRtwkoa/qzqbcZfKHVZjYpX8W9Ofxn9P X-Received: by 2002:a05:6402:1491:b0:562:17e2:2f18 with SMTP id e17-20020a056402149100b0056217e22f18mr559627edv.2.1707855933530; Tue, 13 Feb 2024 12:25:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707855933; cv=pass; d=google.com; s=arc-20160816; b=IpUo8wR6B5HWgnSrZY7WCezaPQni6X0SYTbIQfS7hP+k40loL9XniwmN+xs0wK84jK cFcNCCF+49G6bAzxiX+vh9xV2uNm1DMoFn6nu/UB+GOwOVZE/ZduzfAc6GRzO3WRYqXe kDZwb2wby1CzOZoYtmj463TNU/F3lp0FatjlhaWSRaGE5lNJ6vn/sBu8Qna6nGM2sYNh bPaoZYlMENSsBM1bguhEGAXXoruRFj21RIKH7E7yruozlHY46LE7VhAIzsKkdH/quO8V cewAD4M4xzx5jRYE0L7/pS4OlzJQ4XpXMJXpxEwiw2bsDa3mST7n6fKtD2RZAnxBTNQS Lv1w== 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=wCGixdHWsWgr0kpLRiyA21Y2NwWmOitF91ZlZjMh3kg=; fh=nXJtRO5OM9oWPzpo9XPlYDUG7xx5KBmanGMpISele5E=; b=bj7T0WOBeciriozAtMgA/Lhq1b2gEoYqf673ztjtZ1DLIqkWOwEa3iG+HfIrcChI97 nXlB6He/SZsI17CDtOp6it3f5NYskq+JJJdmp9Id/1PS6wwgCXGZyA/MuJUHPGrtzm+p YgNppMxngjFGFfWs2Pi9cYt7rjedxGOfc9PzYj26U4veZHA2/RIcNv2+u5/tZr4yIvEi 2Ap6nEPQ480ggyoIpVE2IA07MPjWh3XSufz4NVxgO1x2pw+erkf676T7RBW9vMbU/VDi xUHhCZDjCTXyOTgCjp/LjhggxG3B5HXWHXMXHBwFKV3RsffiLg6YJYna1gdZKdIvjdE+ gGfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=BMVTDFy4; 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-64223-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64223-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; AJvYcCUyvSaivUKtEi2eGxIymypSpWqVxDAY9cC508D96Gx7BYBiRLP+tAO+FzN8peP7A1zrKvw3eotkhuh4c3PSQq17QQzOjKZeLWiY+it1MA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m16-20020aa7c2d0000000b0056261b7f759si24069edp.373.2024.02.13.12.25.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 12:25:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64223-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=BMVTDFy4; 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-64223-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64223-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 459E61F26D78 for ; Tue, 13 Feb 2024 20:25:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 421A960BBB; Tue, 13 Feb 2024 20:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="BMVTDFy4" 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 F32C260B80; Tue, 13 Feb 2024 20:25:12 +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=1707855914; cv=none; b=b7HnL9eHUOhs2LhHC14iOkG4hEzkanxmoIpVu9sznxKFkb9oENKCEbCY+7mua1VZAhcw0dk73apOwzNBop0+oVKfooWnTXJ/7F8CxQ3lMvaqAyDplSf54DpMIyNG6RwbDrfPiP/H5Pc9vg1MwNjmvQ9orTD18XDwNhExZtdWnJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707855914; c=relaxed/simple; bh=P9vMmHmk4NQr49aA6KTl5XBWw5rmaRyY/3LRJfNYz/Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IZr3wf8VwCkDJa1b8TZ0aICWWpEdK7YU/VkHtHiDSm3EDEjmQ8BrCo79kmqXw5eQJ2LSe+kkzfmpQPneJDSkNtue7SQKVw/EuLG+KvPZZMZCx0qZydi3EuNfEYMev+m7Q4Wl5AFa2Jscun4rbdlXH9l21W0BKaJPdI6SWRQL3eo= 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=BMVTDFy4; 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=1707855912; bh=P9vMmHmk4NQr49aA6KTl5XBWw5rmaRyY/3LRJfNYz/Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BMVTDFy4P2KoGWV1cFjgJk/Z2iwbE9COqomLBtRzciQn4MOcdMZxH4Yx4H+N6rFct 75b1ouPchajvOCIzq/urVZEiaRNjBhwJkFVRd08p93Ts8T/Qhw05GqtP4Ap58OVFoR kXpHWlDZBMuKtvoCEwQhycVscvhcJ3A7tEGbH3Pn/Xl7YoJ+IowPnL8nO6SRXILUOP dUnaIV4NdTQirgC9eQbZAAl5ZwsVm8HyvB4C92mcosjuigmXBPzX7tkNi1ZRX1c5pN JbgKlwiEm/CePGQksZS8s05mBYMfkWxcBCZFHyGxrFh85UrZk4QLm2dZqXEgBXJ2aA d1iYF7K9nxa9w== 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 4TZCVv5CSJzYVb; Tue, 13 Feb 2024 15:25:11 -0500 (EST) Message-ID: Date: Tue, 13 Feb 2024 15:25:11 -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: Dan Williams , Linus Torvalds Cc: Arnd Bergmann , Dave Chinner , linux-kernel@vger.kernel.org, Andrew Morton , 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 , lukas@wunner.de References: <20240212163101.19614-1-mathieu.desnoyers@efficios.com> <20240212163101.19614-6-mathieu.desnoyers@efficios.com> <65ca95d086dfd_d2d429470@dwillia2-xfh.jf.intel.com.notmuch> <65caa3966caa_5a7f294cf@dwillia2-xfh.jf.intel.com.notmuch> From: Mathieu Desnoyers In-Reply-To: <65caa3966caa_5a7f294cf@dwillia2-xfh.jf.intel.com.notmuch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-02-12 18:02, Dan Williams wrote: [...] > ...and Mathieu, this should be IS_ERR_OR_NULL() to skip an unnecessary > call to virtio_fs_cleanup_dax() at function exit that the compiler > should elide. OK, so I'll go back to the previous approach for v6: DEFINE_FREE(cleanup_dax, struct dax_dev *, if (!IS_ERR_OR_NULL(_T)) virtio_fs_cleanup_dax(_T)) and define the variable as: struct dax_device *dax_dev __free(cleanup_dax) = NULL; Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com