Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6096700rdb; Thu, 14 Dec 2023 08:12:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJTkH9753Hm8B/3KYiVA4xUHMeFjlc9bPQ13JmnzlKT5vXC+gBmwFlwIQfMdz2Q8cfxW0P X-Received: by 2002:a17:90a:a82:b0:28b:18a5:1072 with SMTP id 2-20020a17090a0a8200b0028b18a51072mr362848pjw.36.1702570363922; Thu, 14 Dec 2023 08:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702570363; cv=none; d=google.com; s=arc-20160816; b=j//wmnkyEBTrlG0vC8vk4jpJ4icDQVo679xImXm0/ITcSvRS7koP/A+38vXW93tSJL 6QFUZIX65POPH71da8Tv25IUTCo/cXjnG8mt9oJKt0iRayn2BJ/JKS/KdW1ymDU8O4cB slM2/abPHA3vzrsxtxR8iPLUYLB5F+PoAkxaJbDlNk7RkOk+dmnhcVJyb8bvj0OUvv/l otxtcPFXJxTgt4bmU6Hg1ri38OgndzVCMYFAj1pazSILK2vs/+WS+WA7Be/wpEaCtEIM B8DqEo3kB2R1nLHTDR9uEQwY6/ODMT6lDfl51oOMDQOqgsCkqHkLDqQDifLKNJpKem6V iLvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=U3kF78ThuAxVfL4gt7QMgAUP14WPCtF13sAnc7Ibfc8=; fh=X70JBbgXYTS98HQh3O55+/Bk1bfzfkZOKHV/2bB9Y7U=; b=jteJiYEtNiekz4ovHkHIqjHn1FnQuGH4krmgp5nQIjAbdP3xb4zLqJJmQggVrqKIvN ROyx/VsuBMII12cMpGFCZlcslM3RzWgWhz4FvlzdCvSAjQZkQgzsYrBG1PZqWR19rtXv j+9EFFFxqoSrtRgAgRqHfAcu5Fmrj36mbGTsn/vPR6NPbmoJgQYA6SnOU/bqvnhXkMKh kA6F1VIk2iQW6T9hfcBxMsZmkhqhGzfnJHMYBYTG8LZT8xZxnaD1FtvmI20BzlxT7av6 TnTFkum04bUDl7vWI+d2LeHWcqVJaiua3P9FcjqJeSYzLF6xqsSVyqcIOYsMDANe/55E fCBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id i20-20020a17090ad35400b0028b158f2c52si678474pjx.96.2023.12.14.08.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 08:12:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8C3AF82C4015; Thu, 14 Dec 2023 08:12:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbjLNQMV (ORCPT + 99 others); Thu, 14 Dec 2023 11:12:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbjLNQMV (ORCPT ); Thu, 14 Dec 2023 11:12:21 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F8310E; Thu, 14 Dec 2023 08:12:27 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 8F71968AFE; Thu, 14 Dec 2023 17:12:23 +0100 (CET) Date: Thu, 14 Dec 2023 17:12:23 +0100 From: Christoph Hellwig To: Ming Lei Cc: John Garry , axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, jaswin@linux.ibm.com, bvanassche@acm.org, Himanshu Madhani Subject: Re: [PATCH v2 01/16] block: Add atomic write operations to request_queue limits Message-ID: <20231214161223.GA12810@lst.de> References: <20231212110844.19698-1-john.g.garry@oracle.com> <20231212110844.19698-2-john.g.garry@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Dec 2023 08:12:34 -0800 (PST) On Wed, Dec 13, 2023 at 09:25:38AM +0800, Ming Lei wrote: > lim->dma_alignment = 511; > > + lim->atomic_write_unit_min_sectors = 0; > > + lim->atomic_write_unit_max_sectors = 0; > > + lim->atomic_write_max_sectors = 0; > > + lim->atomic_write_boundary_sectors = 0; > > Can we move the four into single structure and setup them in single > API? Then cross-validation can be done in this API. Please don't be arbitrarily different from all the other limits. What we really should be doing is an API that updates all limits at the same time, and I actually have code for that, I'll just need to finish it. I do not want to block this series for it, though.