Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4684896rwd; Tue, 30 May 2023 08:31:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sWo9JfscYSycJKcsQ2+CoOWWE+qTTkyTWm4CPnHwhpqOhwTHyhoL73uzsSTMvDEeqnNhS X-Received: by 2002:a17:902:e552:b0:1af:d19a:a67b with SMTP id n18-20020a170902e55200b001afd19aa67bmr2961640plf.33.1685460681463; Tue, 30 May 2023 08:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685460681; cv=none; d=google.com; s=arc-20160816; b=OdMTYpxCuINfPDAUzQR2zWzeXrSIrtfu0cSfg5mVeaTTxvLLheDe8Mnrr6BSkjpApv n4a6eszqTfTQMrV0X5ejZMpnr70z4qkI4oo9hjTg6qw7vyh4f5E9JdRp/l9S+DbfqC07 Wz3oeVZpTIwG0XcHo84zZBiEiHgPyNe9ZFKG8XpAVQMBYj9Hv4m8sN6odjtixIbVsWZk r0YEtfJEsk1YxK23Cg42H+l9UfWmy+PPv3nRhmgWWLCfghr5a2AaWTothCPGTwnhwMKX dB94bboo0iKQph7HupMH6NhwWiIElSaeue5POIrdVFct3UVm3hwZ57ra/VMvbuengy/S DVTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YR3Dr4CMzNNzM1c3LGHePU3pSGMOwf2n9BmkTIJqoZY=; b=OBVu7uHfJZ1QhV3jp2gbSADG9M8L4rsODWbDYcGQaswq7srqWdVq4bGXt35bm+VSG2 npTAU/imjFEH9PIIBAH6In6SxuAaHmWZXW4CIAuL4PZnjvjJ0H5TVu4U+94dq3G3Q0PH 7vu4ia8hd4Ev90AkDkdfS8UYA7uyq/X3pdr/uRrOIQJWtD93l7Vbf0TtuipTTd+xrkOw Uv/lAVsJNRzNcSvxf09fqTtNZpHZ/SzRz8UxvjeVtvu6CAHKPr7vkZVBHGnJ1s0G/n5D nAL3Jm6Hq/evVkBbhi5pzmIoAyOi0/ZumAG/s/PDcRrPN92nCMPz5qPEENJ+fI72tzwB 50XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 k13-20020a170902c40d00b001adbf6684f8si2111282plk.408.2023.05.30.08.30.54; Tue, 30 May 2023 08:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S231935AbjE3P2v (ORCPT + 99 others); Tue, 30 May 2023 11:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231887AbjE3P2u (ORCPT ); Tue, 30 May 2023 11:28:50 -0400 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6F9F7 for ; Tue, 30 May 2023 08:28:03 -0700 (PDT) Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-3f6c229b42bso24010761cf.0 for ; Tue, 30 May 2023 08:28:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685460482; x=1688052482; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YR3Dr4CMzNNzM1c3LGHePU3pSGMOwf2n9BmkTIJqoZY=; b=CRsK8gGQFDSd1UOLCAjFRTsiWoboLHuqbZ4/IhY6fMYCJv4Up06Pcqhha0p5qY7PTW KVg7yPcSi7gqF0sS1Z001pA9ymZufwnjBjlyjYM68TtOuD6LIRbFA0sgWfoxseo1VJag jdK+DQtKzGgUnRbErhUpKb4DCIZitoBFatokfioN/Z4scrhNSPJkLoBtxw1w8z8L2Jn4 krOjv8OhYXFy3hDq5RMN9N/CQlKBnxeECoUffdAhVBe49sy6nvUVkXQvStJLQtHkzh4A gVhNmKpYPxyAA/b7FWYJtalUL9snyxymG+rqyuSOB1SCjO7eVrLxBXhzcp3jxy3qmP0J bjlg== X-Gm-Message-State: AC+VfDwOZrRUSyFc4N1cvLI2j+7lriXd/J+9VMtgKhdC0WdgGFuufQVz 8/qeqJA/pMmP4XG/4x5vj5XT X-Received: by 2002:ad4:5ae4:0:b0:625:aa1a:9384 with SMTP id c4-20020ad45ae4000000b00625aa1a9384mr2941055qvh.64.1685460482224; Tue, 30 May 2023 08:28:02 -0700 (PDT) Received: from localhost (pool-68-160-166-30.bstnma.fios.verizon.net. [68.160.166.30]) by smtp.gmail.com with ESMTPSA id o12-20020a05620a15cc00b0074d489e517csm4106298qkm.24.2023.05.30.08.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 08:28:01 -0700 (PDT) Date: Tue, 30 May 2023 11:28:00 -0400 From: Mike Snitzer To: Joe Thornber Cc: Jens Axboe , Christoph Hellwig , Theodore Ts'o , Sarthak Kukreti , dm-devel@redhat.com, "Michael S. Tsirkin" , "Darrick J. Wong" , Brian Foster , Bart Van Assche , Dave Chinner , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Joe Thornber , Andreas Dilger , Stefan Hajnoczi , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jason Wang , Alasdair Kergon Subject: Re: [PATCH v7 0/5] Introduce provisioning primitives Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-ext4@vger.kernel.org On Tue, May 30 2023 at 10:55P -0400, Joe Thornber wrote: > On Tue, May 30, 2023 at 3:02 PM Mike Snitzer wrote: > > > > > Also Joe, for you proposed dm-thinp design where you distinquish > > between "provision" and "reserve": Would it make sense for REQ_META > > (e.g. all XFS metadata) with REQ_PROVISION to be treated as an > > LBA-specific hard request? Whereas REQ_PROVISION on its own provides > > more freedom to just reserve the length of blocks? (e.g. for XFS > > delalloc where LBA range is unknown, but dm-thinp can be asked to > > reserve space to accomodate it). > > > > My proposal only involves 'reserve'. Provisioning will be done as part of > the usual io path. OK, I think we'd do well to pin down the top-level block interfaces in question. Because this patchset's block interface patch (2/5) header says: "This patch also adds the capability to call fallocate() in mode 0 on block devices, which will send REQ_OP_PROVISION to the block device for the specified range," So it wires up blkdev_fallocate() to call blkdev_issue_provision(). A user of XFS could then use fallocate() for user data -- which would cause thinp's reserve to _not_ be used for critical metadata. The only way to distinquish the caller (between on-behalf of user data vs XFS metadata) would be REQ_META? So should dm-thinp have a REQ_META-based distinction? Or just treat all REQ_OP_PROVISION the same? Mike