Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2410242rdb; Mon, 12 Feb 2024 04:12:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaviooFQuJsDHfAFl4ZKg89jdGl8ubRfkkl7+1Wj9DtomL64kNMB+2sZG2M2XlkHhdi/pR X-Received: by 2002:a05:6358:7303:b0:178:a1d9:4a9f with SMTP id d3-20020a056358730300b00178a1d94a9fmr8891612rwg.31.1707739937809; Mon, 12 Feb 2024 04:12:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707739937; cv=pass; d=google.com; s=arc-20160816; b=0UTgUeXQEX37kxG0zKFSb0FB5Uy0wO91fT18RgVUEFqoH4/oOe3oOvDHn38Vp8MqUn hfZxyn4ejsZhk63BFHJXF0JUVSsP2sRmaPCjN86EContJjAuq7SbV2ZchXwr38DYPa37 MmO2LigsMQCUS/OqHK9XqTLZ5TZUpQYPoJObsiM2BhRmsMMPLq8juLYVWTaKuMh9OS59 3Sqn3DZ1cOySjZZ385Z6cgvEfHCcGrgV/LiOFMJ9zLS2tapyVwSlBQZ1JuWxFBWdNIVl IvMGV4jzUKl3gJewtYjj6UuJYzBhPCSpBwYHbCwZc+5vNGqGpf6C5utswv3e/N45krf1 pXsA== 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=Wj1Bx+ORc780amYfcnyH0jUkdbacpOiyptGUnVCMAiE=; fh=EhHqAjPGtcpuQz5548QxXJD3AoGYDYT61H2eEgK+xDs=; b=goQB9ekxq4BLGOriMzlMlhEf43+brALbDke4E/c2N1cqk91xligqjMMLH/t36ye1uH LeWaMgPoWqDJt73lgQnyg/iIiT9tXDqkSKzLojCQaGK4Z9kmwpeF14W8UPLz3Dp8kAmj Cy3M2ilqnnydS4EbQcZKIi7zqX16Al5nQy6Qvl804lQbO+DlxLIqkICZnY0iCijNua0Z XfHoY/BqeyPZYZKZhDjKfDs+1cKYyBbtyYLYgz6QreTTRWLO9JUPPTE2pkURZOM6ISz0 E7bqrPNXj7md4I5qm4f9xmexZV4I/bRWQklTOLHQk8vEYtAqr5OEQTTQcUl1NcihUwcV Zqxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=LrqJ+Zzn; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-61517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com X-Forwarded-Encrypted: i=2; AJvYcCXnhCX9ejvaOkT6AqHkjNgyE9OE38/9GeJtPG0FjlXoS0P69KWn7xlyWoBTSC1wO4NpUkpSEmQuhzXDBbpAISI24g1lkWaXrDkzsVw6FA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b197-20020a6334ce000000b005d8b481c4e3si160751pga.213.2024.02.12.04.12.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 04:12:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61517-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=@ibm.com header.s=pp1 header.b=LrqJ+Zzn; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-61517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 0B813285624 for ; Mon, 12 Feb 2024 12:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD5973A8E5; Mon, 12 Feb 2024 12:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="LrqJ+Zzn" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 055F53A8D6; Mon, 12 Feb 2024 12:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707739575; cv=none; b=U9qmVyKXQulLgwgOR891CyCRixmJU84X4jYQDBZghZrk6VuwA9qqm6i8meYAYJkDpJ95tuS3O/ImAeLZPktOWyATAst10XvRjwEA7fLEPO3Vb27hK+sx0JCVnIhdaw/SW5XUk19XQ7Ufp3Cs7AQ4DdV4z3MZhPw04UHtVnKoIaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707739575; c=relaxed/simple; bh=Wj1Bx+ORc780amYfcnyH0jUkdbacpOiyptGUnVCMAiE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hRieNER9S/oX7iJjfu0kLe/8cb3d8G8hzA/T7eMlHTk6b3LOffs6yMCUw96PwFwpKUv8/QK+UcNP6wiV3577MuL1oSDJW3LriD2+7fM5PLrg1vH8hrq63xXSrBWqIDUUcaimaIUureGMy94kgWRHBHlP88YReXtkXwf29vbLW14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=LrqJ+Zzn; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41CBuMtg027065; Mon, 12 Feb 2024 12:06:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=Wj1Bx+ORc780amYfcnyH0jUkdbacpOiyptGUnVCMAiE=; b=LrqJ+ZznGcXpk2/klyB5BIuAalcafhrItd5nJVFkd+PTaEN8KtYViMRZzlmhOTQacDgU oviIhp5cjwR+j4oJf+aiDLKOm6vBNNS3H61QGU8gjtqbNGYKtzCT+PnXvLZyJ7vjv67h ebMmMltIhIZTaQdKAiZBEOCLhgBKpGX1zh3dT0HnSjzWVcR9RoOumoXteL8GBLCgpUV/ jiLWAYMG410QaeRqBxdq+SS99J026uOYa6JlVbOFL/GZ38eCxKz2aPGbGVgU3QVfdzIX KlGBFX3NAIZsb3GqqQqwnZwIoIIseSaIb2bQracek8jTx7qBOX5qdyz5vsNL7vP9nVOT OA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w7jw8rfm1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Feb 2024 12:06:04 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 41CBucuv028176; Mon, 12 Feb 2024 12:06:03 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w7jw8rfku-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Feb 2024 12:06:03 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41CC1ZCt009728; Mon, 12 Feb 2024 12:06:02 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3w6p62fwhk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Feb 2024 12:06:02 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41CC5wQg24773246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Feb 2024 12:06:00 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9CEBD20043; Mon, 12 Feb 2024 12:05:58 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48F7820040; Mon, 12 Feb 2024 12:05:56 +0000 (GMT) Received: from li-bb2b2a4c-3307-11b2-a85c-8fa5c3a69313.ibm.com (unknown [9.109.253.82]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTPS; Mon, 12 Feb 2024 12:05:56 +0000 (GMT) Date: Mon, 12 Feb 2024 17:35:54 +0530 From: Ojaswin Mujoo To: John Garry Cc: hch@lst.de, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, chandan.babu@oracle.com, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com Subject: Re: [PATCH 4/6] fs: xfs: Support atomic write for statx Message-ID: References: <20240124142645.9334-1-john.g.garry@oracle.com> <20240124142645.9334-5-john.g.garry@oracle.com> <36437378-de35-48dc-8b1e-b5c1370e38b0@oracle.com> 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: <36437378-de35-48dc-8b1e-b5c1370e38b0@oracle.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Yz_9j8QJ6aXP9aheSmS02njmCgE8aigr X-Proofpoint-ORIG-GUID: I2AGZZshADJdEP-gsA_Gj8B0Kskv6lmq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-12_09,2024-02-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 impostorscore=0 suspectscore=0 malwarescore=0 clxscore=1015 mlxscore=0 mlxlogscore=693 priorityscore=1501 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402120091 On Fri, Feb 09, 2024 at 05:30:50PM +0000, John Garry wrote: > The same goes for atomic write boundary in NVMe. Currently we say that it > needs to be a power-of-2. However, it really just needs to be a multiple of > awu_max. So if some HW did report a !power-of-2 atomic write boundary, we Hey John, sorry for double reply but can you point out where this requrement is stated in the spec? For example in NVME 2.1.4.3 Command Set spec I can see that > The boundary size shall be greater than or equal to the corresponding > atomic write size However I'm not able to find the multiple-of-unit-max reqirement in the spec. Maybe I'm missing something? Regards, ojaswin > could reduce awu_max reported until to fits the power-of-2 rule and also is > cleanly divisible into atomic write boundary. But that is just not what HW > will report (I expect). We live in a power-of-2 data granularity world.