Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp564877rdb; Thu, 8 Feb 2024 14:11:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKpE0tMg1U0yhZoyEiCIyDkiGZq0ZaAAjSOX/a2ilT7PjL7jT3QmuAdqjqQnDZN8nGizdO X-Received: by 2002:a05:6a21:a581:b0:19c:a00c:f1f8 with SMTP id gd1-20020a056a21a58100b0019ca00cf1f8mr1121806pzc.23.1707430289685; Thu, 08 Feb 2024 14:11:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707430289; cv=pass; d=google.com; s=arc-20160816; b=gBp73UTO9c5Fvfypk2VFL2qWosrftHzlUi4BgIUdX/V5GSbJQyLciIHu08rgGcS4WI 7IdKJ3UjSV18X/oWL/DmjvkxCT7SIxe32Q4XpDu8pewEI9tUAsiqQAB2rhgnuhgkM6OV tHEn6w1MFki8OLGOAUnNSveDv8/ETJtZewaEVFrWZBsvqWKZpQogCt4Mf4U/in9WUlz6 /PDvUWrx46P3yFl5vOYDKF1djUiWQ6MN9gu/fBe/EkiXP6+GGWKfWckblGLuY2m7Zo3Y 4ZagozaJqD+fgt5OxC8fydbQc5Qz8OqhUPUjBXpYFNANXOkswG9XfbPf4dLIBpJnZ6h0 1YAg== 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=6PrCD58EUrdXCM4jPYA4pXyZvQ7Crv+B7Ue5tXxGPgM=; fh=j8/iB2R0GtmBvDzmRYAAkDY0leZKWVTNUxplpNh0w/k=; b=YUSKW/q/m7oZ0Vq/ymwc/t/vQb+LEcxyUMUnT61SL/JNpyJxwa7yKT0Cyb8Zt++31B qd/RjKHR5+oKcZ0BmQClYwrB+AHXxwI5I3S+DBIXk7ax0DK4JePJdEKzuGIXF9M51HwJ REyRDDiB2BrbNvtkVNOIj9W1lfozOqAwg0aSCoBqaP//hhoC5gnvBhg7KyrOHmKqDc0G hGUsxLSjNz/gIT4jShSuam4VeNVNdfxAdkZKmeDKng11g6tEl8cNZLVynUnun+GZ424k vAuPGeL81GO/I5UjmqnZYv41Wc2lhGg9APw0oqnT2hnpBWzpnZ1E+6lXEaWFukebxmpn NGFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=HHhUTNHw; 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-58761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58761-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; AJvYcCWUQdr2mbA04+DK8VBxnnI9kf2XPkpOWZEIoLKczTrFEQ+sC69rg/Q5UdgleladpeXXAs5IQ7I4xxHMQUbQSt1SeCxCeNlODiVj8M5MVA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ks5-20020a056a004b8500b006ddc1bf70ecsi388442pfb.34.2024.02.08.14.11.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:11:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=HHhUTNHw; 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-58761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58761-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D0312881DE for ; Thu, 8 Feb 2024 22:09:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AFAA4F8A9; Thu, 8 Feb 2024 22:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="HHhUTNHw" 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 CAC474F611; Thu, 8 Feb 2024 22:09:03 +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=1707430145; cv=none; b=XAHI3DQzTrVnFlPLeyqgEEg6J1pSIzrzZjbnovRCHEy7o9o0wvRtSQh/EtepGJe8RyerV7yuYK530kWMysN/rhGEFs4Ay622DO/jkok9jc2/+huQLLClAmfQxzesI2kmAASRGZr3LcvbzSRoJMrqdjpgMxkuZG433A4Db1sH89c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707430145; c=relaxed/simple; bh=kv1G4rauL0V/ovkZqlyZV/zCcYxt4nw+B1HaObpBsBg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IpCfYU8qr6REcU5myVaBq+W0HcUEXgOreO1cpfpo5BKlUJeYyTUnIYO3W2Hc/mOIoZceM+67fgo21WxcOydfdVYVWaCaR26sauGJcFbC6MYbRnAZfzolPgYLdMmmKZaWzUSBxtzOHyJqbQHom+tMoNQXnpqOoDlT9tBPHDSbX9o= 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=HHhUTNHw; 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=1707430142; bh=kv1G4rauL0V/ovkZqlyZV/zCcYxt4nw+B1HaObpBsBg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HHhUTNHwp9t4GjQ6d/I8PbBxZ5Ysc2qEEV48aH3lVN1VoGAv71YymOYZyjOFWPGMd 4SWLdtwlCkB5t2w+1ELwTPFHxTxxuha5Qxjd5h8qyTccFlmpSB/a7d1RmAW7d+vZE2 q/a5IoQJ3CEfwEgxipUsLOBDKGi1bpWHfP47Vw94wLHOsjm2DoP3neVCVsFgrAwah4 vvA8ewXKzgrCnLgx4wejOxSONJJHYgBAy6pqeYLy32KpZTKnoJjwCfdEknNRXwE2+3 5eXO3k9W9vD4setJ/qKQQVlQ/I+pavp1S/Pu537Q1V3SZrJwiKFTHXnFYFBq8AR41q zWLNcSgcR+RYg== 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 4TWB322PvSzY2X; Thu, 8 Feb 2024 17:09:02 -0500 (EST) Message-ID: <72457cf2-c8c3-4c3e-b5d7-c39f55669812@efficios.com> Date: Thu, 8 Feb 2024 17:09:08 -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 v4 05/12] virtio: Treat alloc_dax() -EOPNOTSUPP failure as non-fatal Content-Language: en-US To: Dan Williams , Arnd Bergmann , Dave Chinner Cc: 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: <20240208184913.484340-1-mathieu.desnoyers@efficios.com> <20240208184913.484340-6-mathieu.desnoyers@efficios.com> <65c549aa701cb_afa42943d@dwillia2-xfh.jf.intel.com.notmuch> From: Mathieu Desnoyers In-Reply-To: <65c549aa701cb_afa42943d@dwillia2-xfh.jf.intel.com.notmuch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-02-08 16:37, Dan Williams wrote: [...] >> +DEFINE_FREE(cleanup_dax, struct dax_dev *, if (!IS_ERR_OR_NULL(_T)) virtio_fs_cleanup_dax(_T)) > > This IS_ERR_OR_NULL is ok because dax_dev is initialized to NULL, but > maybe this could just be IS_ERR() and then initialize @dax_dev to > ERR_PTR(-EOPNOTSUPP)? Done. Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com