Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp731926rdb; Fri, 6 Oct 2023 18:30:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFV5xcFtIZRW49FUVwx1uQhn0ha5YBJ04mJOMzTZUjPes5PkBnH1I5ePAlXj183nkBM00vg X-Received: by 2002:a05:6358:8809:b0:143:85ed:827b with SMTP id hv9-20020a056358880900b0014385ed827bmr9662615rwb.5.1696642244000; Fri, 06 Oct 2023 18:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696642243; cv=none; d=google.com; s=arc-20160816; b=nNNnHIPFvALEw2G9RC0xmxET6Z3mUprIWwmxsoxb5NGmnCyGgE7KB2sznSMaCs6GDH YLdqIom2qBtzVeqtj/6Emmnmbtk/P5hdQUVEEcOE58oika570YXfLiQWyOG4M8muEIXj kyiV4QYNW+aEV6VZ7isi0+2Z7wePiW512EeTQX8oq8NBNfm9X6GSVuayHmQanSJZ68YK tnCkGl+/fq4/iut0Tq1xmFDVttP+3kRVKz79zKeOcOjd7p0OVN+4Q5WV/nb8MZdCT/W+ c+b5e+t3hKYApwIft4EFGwZfCuQZ7nJMInYp+8zQPOiSNjMvkXrzLajce1hmu6ywI9nn utow== 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=IF4QfWNaA43XRLFWp4IMKch1uhvVZ0qlp9xdhdkNJ44=; fh=kT6S02lUvzPCjKJ7ybRDcLUYE6FGJHkQHsCPvMpAaH4=; b=m8fYPqajnspq85igELWNi0We+HrTzTiMylg6pIfNX33iCQJ9fGqMFfpTjard6sYYmr CahTPJzWaqWYmSt6/T9ZVTxgyhvfVuyCDySgR41U4JX2PDftKKqbrQDeQ8qhA0bni71B z51C0EFfFjHHYhDKW/yj42IVucZg/nyFYWIyIg+2+xDNIb4r09dIAYAUbcvDW2XXJEEh EmgTEwVNuwdQFDCmvGI/pb1sPJmNaLA6irdMCHWxjzEFa4hN97GzX/Vz7X/oixSylIb6 Y1ZIskPr0WIJ/XPnPYHtxlwTW6PgfDxq8tWyQP7yugfpOCO7fVvKC9EkHeQTmKfzB0n4 3CPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bKOFJ4YB; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d63-20020a17090a6f4500b00278182c3af6si4900116pjk.64.2023.10.06.18.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 18:30:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bKOFJ4YB; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DEF3480A28F4; Fri, 6 Oct 2023 18:30:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234062AbjJGBai (ORCPT + 99 others); Fri, 6 Oct 2023 21:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234040AbjJGBag (ORCPT ); Fri, 6 Oct 2023 21:30:36 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 571AAED for ; Fri, 6 Oct 2023 18:30:35 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9b1ebc80d0aso475051366b.0 for ; Fri, 06 Oct 2023 18:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696642233; x=1697247033; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IF4QfWNaA43XRLFWp4IMKch1uhvVZ0qlp9xdhdkNJ44=; b=bKOFJ4YBkF2Q7KcWEZF2IkVd8iU2u0IxVP4otCn6OaJUzrW7//fsHo+cK65+d0w9SQ CHOFNHP0C6WNlY56fBySb348Mqw8ZHPWOw+SrR5a84p5zJNxl756EExueiukGQa7JQHB oEmhMrXAKyQVehh0jBMgCol7v+eEhWuQtR1tQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696642233; x=1697247033; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IF4QfWNaA43XRLFWp4IMKch1uhvVZ0qlp9xdhdkNJ44=; b=IWvtcLUz6ek1clo1aIpzjPY9uWGeub8q1U4kxwkB1IIa62AZTC5gKmrpJ1edX37zX9 s23LFdhPwtGGU2i1ox0YsryDI2Ivva3hBfCjTo77fVvKzQsCD6qUWq6NDoDMjhfx5UTy Wkr1Y591t0RB/ibij99BNB9gomnWNluQAyJeyPgef9jBA1tO7bUgmwub05zDew7rHdW8 FsEwjLK5dPmK3+jiEPqyyKOYt7AWMUd1Ba01WjIA2MhgSx83f+BsxnPcftZ4QNYA7cVi oa5iVvtAtFTI0EmfqhAugn8rI+MXwW/6nZQOZW6Sc4KG8CG816ROSwFoeHDfp9ZilJRq Ue7g== X-Gm-Message-State: AOJu0YyX6P8LOsbKDCC41fdzi3r1u+Xj6Sr26hb2YZbGmdmPQf+TSvSP VL8fL/YG7iBVDD8deOd0kXqmNeILJedcEE/DbSIzrA== X-Received: by 2002:a17:907:2704:b0:9ae:961a:de81 with SMTP id w4-20020a170907270400b009ae961ade81mr7780096ejk.27.1696642233743; Fri, 06 Oct 2023 18:30:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sarthak Kukreti Date: Fri, 6 Oct 2023 18:30:22 -0700 Message-ID: Subject: Re: [PATCH v7 0/5] Introduce provisioning primitives To: Mike Snitzer Cc: Jens Axboe , Christoph Hellwig , Joe Thornber , "Michael S. Tsirkin" , "Darrick J. Wong" , Jason Wang , Bart Van Assche , Dave Chinner , linux-kernel@vger.kernel.org, Joe Thornber , linux-block@vger.kernel.org, dm-devel@redhat.com, Andreas Dilger , Stefan Hajnoczi , linux-fsdevel@vger.kernel.org, "Theodore Ts'o" , linux-ext4@vger.kernel.org, Brian Foster , Alasdair Kergon Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 06 Oct 2023 18:30:40 -0700 (PDT) X-Spam-Level: ** On Fri, Jun 9, 2023 at 1:31=E2=80=AFPM Mike Snitzer wr= ote: > > On Wed, Jun 07 2023 at 7:27P -0400, > Mike Snitzer wrote: > > > On Mon, Jun 05 2023 at 5:14P -0400, > > Sarthak Kukreti wrote: > > > > > On Sat, Jun 3, 2023 at 8:57=E2=80=AFAM Mike Snitzer wrote: > > > > > > > > We all just need to focus on your proposal and Joe's dm-thin > > > > reservation design... > > > > > > > > [Sarthak: FYI, this implies that it doesn't really make sense to ad= d > > > > dm-thinp support before Joe's design is implemented. Otherwise we'= ll > > > > have 2 different responses to REQ_OP_PROVISION. The one that is > > > > captured in your patchset isn't adequate to properly handle ensurin= g > > > > upper layer (like XFS) can depend on the space being available acro= ss > > > > snapshot boundaries.] > > > > > > > Ack. Would it be premature for the rest of the series to go through > > > (REQ_OP_PROVISION + support for loop and non-dm-thinp device-mapper > > > targets)? I'd like to start using this as a reference to suggest > > > additions to the virtio-spec for virtio-blk support and start looking > > > at what an ext4 implementation would look like. > > > > Please drop the dm-thin.c and dm-snap.c changes. dm-snap.c would need > > more work to provide the type of guarantee XFS requires across > > snapshot boundaries. I'm inclined to _not_ add dm-snap.c support > > because it is best to just use dm-thin. > > > > And FYI even your dm-thin patch will be the starting point for the > > dm-thin support (we'll keep attribution to you for all the code in a > > separate patch). > > > > > Fair points, I certainly don't want to derail this conversation; I'd > > > be happy to see this work merged sooner rather than later. > > > > Once those dm target changes are dropped I think the rest of the > > series is fine to go upstream now. Feel free to post a v8. > > FYI, I've made my latest code available in this > 'dm-6.5-provision-support' branch (based on 'dm-6.5'): > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.gi= t/log/?h=3Ddm-6.5-provision-support > > It's what v8 should be plus the 2 dm-thin patches (that I don't think > should go upstream yet, but are theoretically useful for Dave and > Joe). > Cheers! Apologies for dropping the ball on this, I just sent out v8 with the dm-thin patches dropped. - Sarthak > The "dm thin: complete interface for REQ_OP_PROVISION support" commit > establishes all the dm-thin interface I think is needed. The FIXME in > process_provision_bio() (and the patch header) cautions against upper > layers like XFS using this dm-thinp support quite yet. > > Otherwise we'll have the issue where dm-thinp's REQ_OP_PROVISION > support initially doesn't provide the guarantee that XFS needs across > snapshots (which is: snapshots inherit all previous REQ_OP_PROVISION). > > Mike >