Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1371614rwd; Thu, 8 Jun 2023 17:21:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kTG1aTHBGlgeSylXXYqVCcKl0jZaISxokZX7xFV3rhrmKRjBjMfSYak7ySwbf0GjQ4OLF X-Received: by 2002:a17:90b:2353:b0:256:38d1:eec3 with SMTP id ms19-20020a17090b235300b0025638d1eec3mr9168613pjb.38.1686270083930; Thu, 08 Jun 2023 17:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686270083; cv=none; d=google.com; s=arc-20160816; b=jTdCXVXYIMuWzTD335yWKLA7/EfkOJLggjNse4UGLW6CTPOMvv1M03HVhQCFFZs+Tz kGkV6YQsI71upgeN1v+2+dS1uSx3lXdK+Bg2FE80vaDkRjuLrE/gTgu5VRcdBKWaPP2Q /Ot0CwFMdwtdiQpdfa5E87A7dS0h4UmSM3ISolM67rckOUJlGzYygQ1XDVCzfy29ysMA juJRbml7/G/2dBXy/u9e4lZ05AU5iZypkGv8AtmGX2eL7UG0lzxZF7BoGpHqpIUEztrN scJ3/mGODQbQRp4HFAsx0KY5Fn4UgMVJNWJKmeFj4qEP8+JWMFzoA4SKMbt8tAShaUE/ 24uA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eSknQxfSV4+v9bHiWDr5V1hQkXbY8spDyyTXR1H3Z7w=; b=qUvjK7pcXB2ppdfqOUzqZcXt7ta0X1z1lzTscNNChTUeLJq8OkqK4wF0qLyO+2B/7n b/UtZbV2LmeAdZP3Hclgj18LkKbWww/tu9ys/emXDsga19RYJ8ZzuShBVqfv4wWx8PYb 0i2VLf36KlGSM3sdc5rfycZWmwlMlBzIgojHZOBK3mVCxelPCuj/xyGVRtW/dig/aBMc voX7zXtCIjt5Cllpvda3UD8pa1k9xGJWe7cXlxERh46fDKHXViaGs3nihLsG+W/+B92D uOP5wJ/bo6/cTGFMpVuU3F5wQHpJ8SOtInea25cfz4rcvHhUQO6WVtlR9ZGdIZ+WPmuk 5Zmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=HJx733T5; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a17090abe1700b002528f40700dsi3371969pjs.153.2023.06.08.17.21.09; Thu, 08 Jun 2023 17:21:23 -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=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=HJx733T5; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237713AbjFIAKT (ORCPT + 99 others); Thu, 8 Jun 2023 20:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbjFIAKR (ORCPT ); Thu, 8 Jun 2023 20:10:17 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77A552733 for ; Thu, 8 Jun 2023 17:10:16 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b0424c5137so2736095ad.1 for ; Thu, 08 Jun 2023 17:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20221208.gappssmtp.com; s=20221208; t=1686269416; x=1688861416; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eSknQxfSV4+v9bHiWDr5V1hQkXbY8spDyyTXR1H3Z7w=; b=HJx733T5tRUocMxkNFje8IYT5y67NY8WQ9amqlXIrQE0tO5LmkrYdPSVks/TY2IxcT UUj464UKm1Ze10y30+7mDcVysdd5foK6T1gZMus8II2PhCtKOmFDhUAG4if56wLq6NFn +ZvD8azh3PqqeTyEvmGfqWTkYtIV5V0p3FJcAivduTYIzAKAgH1q8iCTukjIcU5Ghiam 9bgoebeFRtoeIrJgBTUVEsgoZxdqVfyknN9PGTnhCfK7BeWkP38a4H5SaLjXifwAErTq HBwvuRZNYSPNMd2LHZ3bmRQ1U5bP5bzkIRccEiGV60hLmbFPk36J+rSWZ0NVBxObvp5U J//Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686269416; x=1688861416; h=in-reply-to: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=eSknQxfSV4+v9bHiWDr5V1hQkXbY8spDyyTXR1H3Z7w=; b=KS1b0KRFZlpBI9xnbDHctCunGdXxV2H6EbJtllx0TpY7UZ/BiChRhiv9fBwU6o9DbU /Gjq7YxBLuPqb5XAxDlegLI4dbdTBhN3m8Ee9PEX2Y7pFrQv8jo+63rNCu2DPVKqSB+S R5RDPCgDe1v9eXqkVYKfujLyNlScn5HQUSrfJDA7xp9Dnxu7+EdDeRksngd1LQUDnJnv 8zeXNAlLEHHB7K4H7p5qGiOYSiHRcCbEelI3bXHTowZoKSfQvHAmNCnSGm9IRhwEbrul uA/eP3rmT6FYGfqw6WxiIkl7yZngaTRtwNTsLZiIwjG8EA/5pWc6vEO/2BG+6sy81z/9 76HQ== X-Gm-Message-State: AC+VfDwxLz1GfIPTqRigvMqyoBzaHNFKIYj4aYz9wTCnNwMRn4e69CmF hWLlvj4ifTeIvl/ZT3sD3SsJlQ== X-Received: by 2002:a17:903:120d:b0:1ad:f138:b2f6 with SMTP id l13-20020a170903120d00b001adf138b2f6mr10756391plh.16.1686269416027; Thu, 08 Jun 2023 17:10:16 -0700 (PDT) Received: from dread.disaster.area (pa49-179-79-151.pa.nsw.optusnet.com.au. [49.179.79.151]) by smtp.gmail.com with ESMTPSA id b13-20020a170903228d00b001ae8b4dc49bsm1972178plh.13.2023.06.08.17.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 17:10:15 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1q7Phl-009U1b-0E; Fri, 09 Jun 2023 10:10:13 +1000 Date: Fri, 9 Jun 2023 10:10:13 +1000 From: Dave Chinner To: "Martin K. Petersen" Cc: Sarthak Kukreti , Mike Snitzer , Joe Thornber , Jens Axboe , Christoph Hellwig , Theodore Ts'o , dm-devel@redhat.com, "Michael S. Tsirkin" , "Darrick J. Wong" , Brian Foster , Bart Van Assche , 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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, Jun 07, 2023 at 10:03:40PM -0400, Martin K. Petersen wrote: > > Dave, > > > Possibly unintentionally, I didn't call it REQ_OP_PROVISION but that's > > what I intended - the operation does not contain data at all. It's an > > operation like REQ_OP_DISCARD or REQ_OP_WRITE_ZEROS - it contains a > > range of sectors that need to be provisioned (or discarded), and > > nothing else. > > Yep. That's also how SCSI defines it. The act of provisioning a block > range is done through an UNMAP command using a special flag. All it does > is pin down those LBAs so future writes to them won't result in ENOSPC. *nod* That I knew, and it's one of the reasons I'd like the filesystem <-> block layer provisioning model to head in this direction. i.e. we don't have to do anything special to enable routing of provisioning requests to hardware and/or remote block storage devices (e.g. ceph-rbd, nbd, etc). Hence "external" devices can provide the same guarantees as a native software-only block device implementations like dm-thinp can provide and everything gets just that little bit better behaved... Cheers, Dave. -- Dave Chinner david@fromorbit.com