Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2591374rwd; Fri, 9 Jun 2023 13:45:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hfyoWGmJgzSqwvCqfw7E0JhmavLcCJ+Gj3WxR5DEG4IS/BJQdSxdEMfWLJR8gYgG3G4O/ X-Received: by 2002:a05:6a00:138f:b0:65c:6881:d86c with SMTP id t15-20020a056a00138f00b0065c6881d86cmr2086430pfg.27.1686343533566; Fri, 09 Jun 2023 13:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686343533; cv=none; d=google.com; s=arc-20160816; b=VV9+amvHf4Mh2TNhNsL1vy0+m4ud8uHFYE4wF6QnPM0/Y4hn3i+Hs3f+l1vWN5hmsb ttedsHGtSsZM2woXr7lUjSpDKlVhGRaj0N3gMDDU6lGImQWcylLHAYj8/TBvrWjHjurf q681z4AFwEZuueG0ZoH5YeMEajKD73GS+gYYtPkcfFlBoV7e/FVbmyCol6YZwW2388y1 hihvC8fwvF2MarAWEyqvihMWJRY+8oFc4olDsRGhH8xH4dIKHMtFWf+We2glN3HmuW2g Gws/Cdkj5BLphe5dtgdtWO/PpOg2QWee3CJyuL9CUeWlBqsaqT2VKWdwOBj9grEGp/BY cLdA== 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:dkim-signature; bh=kqBodWvsMAtzK0roMuBBNkvevtML0piZ6ybEx/MweaE=; b=vMXPaKYdQB7naC3ad7q9T2T1eC52faANMVoWSx7vPHNxDh21LjPR8rWVFcPxK4ZBZc 1KzdbcTVCjwaewHnauJZd4GMFPONtttQgk7qF4Y5u7jDeclfv9076dpbr4Jj1DE1UiM+ 3F3dNBSjhOfujc3rCn4LbbettsioQgbS7r2zbT8Ni2Ysyw2rWla2Ky1Bh7kgmBFohYzX L5PyDSL6nN9MSqzYLscnfMGTxtVRg7BR5Q7ZHGEJCpuSJGiB+2SG5fyknTfEbQWN7mOf jeZGbJOagVVPiFfv2uBbp1HyocLqShrDcVZcI7P4alwQr8BTjg/l1oHT4BoObGpxtYQS eL3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="b7/CcLsA"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a630016000000b00543a6cf2b5asi2987596pga.528.2023.06.09.13.45.16; Fri, 09 Jun 2023 13:45:33 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="b7/CcLsA"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbjFIUcd (ORCPT + 99 others); Fri, 9 Jun 2023 16:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbjFIUcc (ORCPT ); Fri, 9 Jun 2023 16:32:32 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF71F83 for ; Fri, 9 Jun 2023 13:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686342705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kqBodWvsMAtzK0roMuBBNkvevtML0piZ6ybEx/MweaE=; b=b7/CcLsAMjP9Vy5MDPbh9pobWxTi9TpMCZA2RAu+3f5OANasgfDj7emfZ3wC9souzt2j1h eYzu+VZ6ZiAS9SWRWFhwuYbsYVhkJYhiHuJiMoSiOOqQ2MY7vzlWWZndnsNwBkHbAYfxJq dMuYkC78uQxYduH5mN4xJXMn6mnIa10= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-ex2eL9qyPgyEpUFr7ysQ2w-1; Fri, 09 Jun 2023 16:31:43 -0400 X-MC-Unique: ex2eL9qyPgyEpUFr7ysQ2w-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-62621cdb1f0so24202526d6.0 for ; Fri, 09 Jun 2023 13:31:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686342703; x=1688934703; 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=kqBodWvsMAtzK0roMuBBNkvevtML0piZ6ybEx/MweaE=; b=gqhUyg7UgX9dM6sCfB8NKMXzTFbouIIwzDFHsqXC2ybE1B8dc24EQSsWDM/7RBLb1b LbVh3IxxILm3tZ44q0Chw/5Ooh5NfbLkzPSLqC4amGNhHFmt0UlrlTc91qhEYt0FFaTu tXP1iJ372gcvvENlEZZcEakDhxfHCRyRJSaOGdfA/sCGyc8zZLAb1xvyzPrq25ppf6Ky zMTF3qCgbPpQscqnNUO34VEZOdumEgFShzC/A4hPYkXbc2SXQDWe5zCzzwROpB9FC7xn EZaW0ZI+r+OiWcMCiF9MbYNOaRZn6gzTHVNdAsLj2kjdW3QLiESxdvCtxfZLoxOgxbbc psbg== X-Gm-Message-State: AC+VfDxVW2BeX4JlZv644n9ClO3gGy2i8xBz2O2RRYF5PakBIFLh6eDs uOivRQAnxPGihX1EI2VFsO6VxWW+p5TL8EKYmAXMtVu4UpB5vJ7aGLtUrNCR1q79D+RJI9F2yAx FwxfTLCW3QCagF50T8Wl0 X-Received: by 2002:a05:6214:124a:b0:626:3a5a:f8dc with SMTP id r10-20020a056214124a00b006263a5af8dcmr3512861qvv.57.1686342703119; Fri, 09 Jun 2023 13:31:43 -0700 (PDT) X-Received: by 2002:a05:6214:124a:b0:626:3a5a:f8dc with SMTP id r10-20020a056214124a00b006263a5af8dcmr3512845qvv.57.1686342702858; Fri, 09 Jun 2023 13:31:42 -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 m24-20020ae9e718000000b007578622c861sm1250201qka.108.2023.06.09.13.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 13:31:42 -0700 (PDT) Date: Fri, 9 Jun 2023 16:31:41 -0400 From: Mike Snitzer To: Sarthak Kukreti 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 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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 AM 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 add > > > 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 ensuring > > > upper layer (like XFS) can depend on the space being available across > > > 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.git/log/?h=dm-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). 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