Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1846586rwr; Fri, 5 May 2023 23:29:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gk1NASPn+DJ4F0MtrwlaLopkh4tEMSLR1MlAwFnmiVNvRBuJXrn3d64f3Dj3I3SkRThlL X-Received: by 2002:a05:6a20:841b:b0:f2:7da5:f27e with SMTP id c27-20020a056a20841b00b000f27da5f27emr4891335pzd.21.1683354591646; Fri, 05 May 2023 23:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683354591; cv=none; d=google.com; s=arc-20160816; b=ml2/WgfWGB/WQp+A1yXpBPnBui+rMEE3j3gY/Gq4CZjHBLJAKtbSISqywZMQM28aWp x7oslsZyJzD2hQV5vH3nPQGJ91rG7kx3PuCLdqk4wbe3ymK/btY6YryRNmRzx3vHAwLb RxYV/tL5A6C/pNa+g8/ZZ5AioD3fF+eC0nWCIKtYvxzLoFZqe6NY9d+BArUt/6yNElVV 5mLSHl13Qo7STlMogNF27V0yR6Hw/lJ5Zo71OnHO5G7ku6LEx0CzjojuL3biAj1/AX2C GzqwU93yu0beXd0UyJ+G8h9Gnk9NCuBe94crRpIwLC6oF8/IO+FG7/dwclW9ICkW0yLF 1eFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QzUNeo8AaNnB2TIGkih7468jv3ib2GmUiAAiulb8HSg=; b=VRocPlt3k9cCtv3ozNO4nFPcH/r1w40zPySwgif0FYN2RV5cnfrA1Uy813IlSvjI9O 1sEpZfddXjJ9QkuUc7gvq3Qzmxvmr48e4vHgWVxQ30p7jnbFX/IQrcombHp3htajbWlL za5gNv6ys5JtBsL7hxj7Y8NyG7Co2gSwKwnMmoWP4D8wQueXYHB0IQI/yPxSUmVs3hCN rnb22M7aacxeEYdPQBCfL37R6VCDVK/Mu2nSh38OmMLfFaN0Au7LxAkek6O/Hu4K++pD ZEq/w9fU2Uk96bJrqDx1DXjG2rwtYSHpnvxUYgCFJyDYK3+oT9phTya9+7sVwOfeq1Oi Z6Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BZEtsQk1; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a630704000000b0052c998beef6si3666539pgh.506.2023.05.05.23.29.29; Fri, 05 May 2023 23:29:51 -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=@chromium.org header.s=google header.b=BZEtsQk1; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbjEFG3X (ORCPT + 99 others); Sat, 6 May 2023 02:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjEFG3W (ORCPT ); Sat, 6 May 2023 02:29:22 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA40900D for ; Fri, 5 May 2023 23:29:21 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-52cbd7e73d2so385851a12.3 for ; Fri, 05 May 2023 23:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683354560; x=1685946560; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QzUNeo8AaNnB2TIGkih7468jv3ib2GmUiAAiulb8HSg=; b=BZEtsQk1eDY6hs4GRnP5P6GOQk3ymlCkXhW6QzXu6GIPp1ZShDBnC8dv3S7B4jbB37 wLqPTd1a8Knjh04tv6w3Ce54uaFFtxUEqwA+v6hbIeWchc/pG5cHcJf87mGORpe2D9bk CPI4Bh73qYzNmgnoqy6/e4ivE75pIdcQaVYN0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683354560; x=1685946560; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QzUNeo8AaNnB2TIGkih7468jv3ib2GmUiAAiulb8HSg=; b=DRFUzD6f1jnCviIZg8bieWjzNTUi/JqjK3JYUYnuEjNOtEeB9OPOZygnDpCAuYP/MJ 7VkIuiS99L5IoF/QPZv+EB87fOKZsMhDQ4bvyhDaLUh97lOy9L5Bgly3PcZToe6X1Dmr uzxLrkAEIH6wRfXwKfuGVQ9i6uf/TwHVdeXlv4hzQWATkl3pa/pwfZ6pOxLCytJxBZOk 2KsHkEcvlKbW/L5oVDrIPek6e9yCH3qsQ/CS92bNcwB+Qo5XqTABhGIa7tirWPbO99dq r7lTRzVgPbDRi9Z5Yx4n+o9J2cCL7JZ8zovbYmx4tWxEc5DgZruHTtEDlWgdcu7NDXJ5 r0nw== X-Gm-Message-State: AC+VfDxdpQMYi298UHipqh8tVJBEXcM9maRfJwc6eoReGbzXbvi3N2Z8 3JFVxU3WF8XIm1ijzcahcxe3Tw== X-Received: by 2002:a17:902:ea0f:b0:1ab:13bd:5f96 with SMTP id s15-20020a170902ea0f00b001ab13bd5f96mr4894008plg.4.1683354560544; Fri, 05 May 2023 23:29:20 -0700 (PDT) Received: from sarthakkukreti-glaptop.hsd1.ca.comcast.net ([2601:647:4200:b5b0:f19c:a713:5517:ed4]) by smtp.gmail.com with ESMTPSA id q16-20020a170902dad000b001ac381f1ce9sm2793598plx.185.2023.05.05.23.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 23:29:20 -0700 (PDT) From: Sarthak Kukreti To: dm-devel@redhat.com, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Jens Axboe , "Michael S. Tsirkin" , Jason Wang , Stefan Hajnoczi , Alasdair Kergon , Mike Snitzer , Christoph Hellwig , Brian Foster , Theodore Ts'o , Andreas Dilger , Bart Van Assche , "Darrick J. Wong" Subject: [PATCH v6 0/5] Introduce block provisioning primitives Date: Fri, 5 May 2023 23:29:04 -0700 Message-ID: <20230506062909.74601-1-sarthakkukreti@chromium.org> X-Mailer: git-send-email 2.40.1.521.gf1e218fcd8-goog In-Reply-To: <20230420004850.297045-1-sarthakkukreti@chromium.org> References: <20230420004850.297045-1-sarthakkukreti@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-ext4@vger.kernel.org Hi, This patch series covers iteration 6 of adding support for block provisioning requests. Changes from v5: - Remove explicit supports_provision from dm devices. - Move provision sectors io hint to pool_io_hint. Other devices will derive the provisioning limits from the stack. - Remove artifact from v4 to omit cell_defer_no_holder for REQ_OP_PROVISION. - Fix blkdev_fallocate() called with invalid fallocate modes to propagate errors correctly. Sarthak Kukreti (5): block: Don't invalidate pagecache for invalid falloc modes block: Introduce provisioning primitives dm: Add block provisioning support dm-thin: Add REQ_OP_PROVISION support loop: Add support for provision requests block/blk-core.c | 5 +++ block/blk-lib.c | 53 ++++++++++++++++++++++++++ block/blk-merge.c | 18 +++++++++ block/blk-settings.c | 19 ++++++++++ block/blk-sysfs.c | 9 +++++ block/bounce.c | 1 + block/fops.c | 31 +++++++++++++--- drivers/block/loop.c | 42 +++++++++++++++++++++ drivers/md/dm-crypt.c | 4 +- drivers/md/dm-linear.c | 1 + drivers/md/dm-snap.c | 7 ++++ drivers/md/dm-table.c | 23 ++++++++++++ drivers/md/dm-thin.c | 70 +++++++++++++++++++++++++++++++++-- drivers/md/dm.c | 6 +++ include/linux/bio.h | 6 ++- include/linux/blk_types.h | 5 ++- include/linux/blkdev.h | 16 ++++++++ include/linux/device-mapper.h | 17 +++++++++ 18 files changed, 319 insertions(+), 14 deletions(-) -- 2.40.1.521.gf1e218fcd8-goog