Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5065001rwr; Mon, 8 May 2023 17:44:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45Zl4H4lb1e5jv/J/ZwcNmxgnlwYdLl9SMiqUoetyijN+RuuP2Gg60w+ufQOu7Y68WgtmD X-Received: by 2002:a05:6a00:150b:b0:645:c730:f826 with SMTP id q11-20020a056a00150b00b00645c730f826mr8381897pfu.24.1683593072091; Mon, 08 May 2023 17:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683593072; cv=none; d=google.com; s=arc-20160816; b=yprLClbKHWA4JT2vJurtb3e6Zv7hxXZXYj2CaTVquRD0BWA8fqaBvFoU3+hAWKjAwL qti3v+fCrT+StcwW8Rg0YX5PhWlkHOYghjE4l6hF0LlrQ7+P8Sg58mU4jcki0NdQ6J5R QnP4qfxtfDijf2vfLl2XJcvPng8N4WQ7siO+cI+2Ojbu88kzpN9i93cJ6fkrdleZQu3e Glzxl3wUd8VzamoponsC0JBzUpYsaqr19BltHfCxQ1Y9E6DAzcUVIjjX/QmXzHgxsGPB tOtHqk/kiwcW4Ytakw2pCYpb8WzmQE++hzODK0ic6gUk+96CDs3EWmiRbfBiRgauL9fD u4pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uqc8N53ZwcRysbOJxGrXHPppVyJCQvKCb0bSM/Hdsuo=; b=EMgAKLb3URJ43XuDfSYcw1KUy1DDMuTOuz2waof9nKOIDJ1pLn1j30ISyMatYKgLGZ 0fq+YswukCh1kyrrauvAnno2Zut3+VbS0r9CIkfeZiiMMnT5qaT8i1zZ3lXZW8gP93N7 JbONS1MH8DL32cFI6iAeQWwk8UbWV4omCclr8SNmKP4huqY+hqlzOOzUfGjantJc2DQA vQ5bnDhxctEQHjbTYes63kl8m9zgfgxEMdEAl+ltGWlf3xggsyjVzFFiyo0i3JsO+mYF pSrR8lZeE0o/aOakkDNUT6cfjH5CNPl+2keHBCTeCm6G1QtzfnDn3B7C8aAoLPH4/0nG T3hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RSSudBY1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020aa79dcd000000b006435b9bd9f0si1165947pfq.45.2023.05.08.17.44.19; Mon, 08 May 2023 17:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RSSudBY1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234167AbjEIAUD (ORCPT + 99 others); Mon, 8 May 2023 20:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234148AbjEIAUA (ORCPT ); Mon, 8 May 2023 20:20:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EDEF49D0 for ; Mon, 8 May 2023 17:19:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 349CE6309D for ; Tue, 9 May 2023 00:19:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9061EC4339B for ; Tue, 9 May 2023 00:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683591598; bh=MjkItiypktEo25V6DO99EB7GxcQEs1EfAiVhHUuOnbQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RSSudBY16vz4RroQGxUhku5OYcaCkTjMO58/KDOi1njcr8zgMeihbJkxIfe65FdwA WTKRFk6yLOIpAzrnwSc0mgGoLoqHAmwLcw5j+/ZcE4ExvVWFtdQZHfyiT5v2LqPQAL CJjAqVGQZKTLiM7Geg+UAZwtw9PLqV72x8dfHDiQPcnMah4gDRlxD0mfA6PQtR1ygY tSHHJaV+yO9jZA69YjZYgxwTxbKWNwxGoRQkoKHqh2LcT4jRNC4u7QTtaySrD+bmEI Jwb9ej+fJqbGeMH8Q1vK9wkTdfbBAJF3cszo7dZOpRxsmLDp07qqoh+s+uHedZ8+xd 8LPuzMoSTBDxA== Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-50be0d835aaso9489177a12.3 for ; Mon, 08 May 2023 17:19:58 -0700 (PDT) X-Gm-Message-State: AC+VfDwaoXWySdGujuGpy870vTi5lK1nuhtv0E2QDKX33sAjfruXmE7g kDLeq6umgxsuiwz6SE3QgUXlkcD0O7TcrHiwnE8U X-Received: by 2002:a17:907:9808:b0:94f:4801:6d08 with SMTP id ji8-20020a170907980800b0094f48016d08mr10822326ejc.71.1683591597081; Mon, 08 May 2023 17:19:57 -0700 (PDT) MIME-Version: 1.0 References: <20230503183821.1473305-1-john.g.garry@oracle.com> <20230503183821.1473305-2-john.g.garry@oracle.com> In-Reply-To: <20230503183821.1473305-2-john.g.garry@oracle.com> From: Mike Snitzer Date: Mon, 8 May 2023 20:19:46 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 01/16] block: Add atomic write operations to request_queue limits To: John Garry Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jejb@linux.ibm.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, Himanshu Madhani , dm-devel@redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 3, 2023 at 2:40=E2=80=AFPM John Garry = wrote: > > From: Himanshu Madhani > > Add the following limits: > - atomic_write_boundary > - atomic_write_max_bytes > - atomic_write_unit_max > - atomic_write_unit_min > > Signed-off-by: Himanshu Madhani > Signed-off-by: John Garry > --- > Documentation/ABI/stable/sysfs-block | 42 +++++++++++++++++++++ > block/blk-settings.c | 56 ++++++++++++++++++++++++++++ > block/blk-sysfs.c | 33 ++++++++++++++++ > include/linux/blkdev.h | 23 ++++++++++++ > 4 files changed, 154 insertions(+) > ... > diff --git a/block/blk-settings.c b/block/blk-settings.c > index 896b4654ab00..e21731715a12 100644 > --- a/block/blk-settings.c > +++ b/block/blk-settings.c > @@ -59,6 +59,9 @@ void blk_set_default_limits(struct queue_limits *lim) > lim->zoned =3D BLK_ZONED_NONE; > lim->zone_write_granularity =3D 0; > lim->dma_alignment =3D 511; > + lim->atomic_write_unit_min =3D lim->atomic_write_unit_max =3D 1; > + lim->atomic_write_max_bytes =3D 512; > + lim->atomic_write_boundary =3D 0; > } Not seeing required changes to blk_set_stacking_limits() nor blk_stack_limi= ts(). Sorry to remind you of DM and MD limits stacking requirements. ;) Mike