Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5179910rwl; Tue, 11 Apr 2023 01:22:24 -0700 (PDT) X-Google-Smtp-Source: AKy350aihoTQQ0JaYcEP5TfId5nlA28s5j6jjYEYglUFruaFOBbEiSoXb0gw9KSoUiuIMXnwsN2q X-Received: by 2002:a17:906:c242:b0:92d:591f:6586 with SMTP id bl2-20020a170906c24200b0092d591f6586mr8802290ejb.34.1681201343910; Tue, 11 Apr 2023 01:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681201343; cv=none; d=google.com; s=arc-20160816; b=KW8E3WLjPfVXMyTxfVbBeu7CaMeZoS8Zam60IeaOTzCWJzVjgRCnlf7a7q6RDg5LGw PPvkWYFhabLimt0tcZr4p/BUlqy/QZcfh/URmKwJrRRTYN6GbYYsL7azC47Zxo8U6wON UbVBY8n+v3+CeRJ1TGZOmGaoh5aB+n924Q/ZmQj175Vm1oYxHf+HnZlW2zGWH5UPm1W/ nY7+9Gs+RtLpcxO7dllmFurOwRNXc7B3pqPDJ7zLoaQ8NudNauuM3986vwXteM4aG8d8 76wYJx0R2HzM9qQqqeQYgXXi99T16cjrFai1rQUOjIdE6KcUTA4t4yZ6uTdnuElzuKJr OSGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=LSWdD3MQyN53kHS/yCDz0oi55FM+zMca65KKpSIzhUQ=; b=cIyD73QibVu8qixQb21bPXgRF4eoM/dX7wuls6hbfV7+y/xmvRTMMMmTxYm3RZgn5q hwzoIgB1AGxMT4IotqvFQLE6++byYlBAfvUHLwWBfY6kBthLytqQ0avcIp/2e7CUmVRA zBaHw7YbAMzb1A4oCYeVjetgo4AH4ftIvOHC138z10y9DSb/IxLk61rw2fuYq8N1q9uH onniOV6+dEpPfQwq5Uvdr+t/jdOoTQvWVUr9Llho8Iexhuj0vm3g0Kn7/vBEif06UCXK +jx4Q/ITK9welYD3rdF6ziLjtqe/j/fSr/MlXAKIQINVNPRzuwrYl3ayItLvA/616LKv oaUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=A+gRVZy8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae5-20020a17090725c500b0094a4e970513si7906569ejc.739.2023.04.11.01.21.58; Tue, 11 Apr 2023 01:22: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=@samsung.com header.s=mail20170921 header.b=A+gRVZy8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230404AbjDKIVP (ORCPT + 99 others); Tue, 11 Apr 2023 04:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjDKIUk (ORCPT ); Tue, 11 Apr 2023 04:20:40 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCF0420A for ; Tue, 11 Apr 2023 01:19:50 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230411081949epoutp02a1052102d28f239660f664215cf8f79c~U05L4xwFP0590105901epoutp02O for ; Tue, 11 Apr 2023 08:19:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230411081949epoutp02a1052102d28f239660f664215cf8f79c~U05L4xwFP0590105901epoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681201189; bh=LSWdD3MQyN53kHS/yCDz0oi55FM+zMca65KKpSIzhUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A+gRVZy8wxEWhLMjG7PTNg3FIqPbv0U9tdhLuaMIGsy0OfazrWjkNIHl7jkkw6FUY GFPLYyLm9l+O7zTdDS1byHi8gcm4gPBgPXUWxFnQZiUvWfXbxk6EYmFB0MFdAbWD9C W+LVgX/MdsLaFU/M44vdj8CvWEsTUzRhAp0byDgs= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230411081948epcas5p259aff7c3e4caa110a36836bab23b8110~U05LUqq1Z0093700937epcas5p2X; Tue, 11 Apr 2023 08:19:48 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.174]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Pwf0218Y5z4x9QF; Tue, 11 Apr 2023 08:19:46 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 67.4F.09540.22815346; Tue, 11 Apr 2023 17:19:46 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230411081351epcas5p3c2a85087cce368f6c2e0ffdbf18f29b2~U0z_dpTVe2461924619epcas5p3v; Tue, 11 Apr 2023 08:13:51 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230411081351epsmtrp14c71460f7f29de5d9fca595fba7313c5~U0z_cD27P1918219182epsmtrp1f; Tue, 11 Apr 2023 08:13:51 +0000 (GMT) X-AuditID: b6c32a4a-4afff70000002544-86-64351822eb6f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id A0.0E.08609.EB615346; Tue, 11 Apr 2023 17:13:50 +0900 (KST) Received: from green5.sa.corp.samsungelectronics.net (unknown [107.110.206.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230411081347epsmtip224a26827cc4aeef86f955c4275720480~U0z7VJIRW2247222472epsmtip2J; Tue, 11 Apr 2023 08:13:47 +0000 (GMT) From: Anuj Gupta To: Jens Axboe , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Keith Busch , Christoph Hellwig , Sagi Grimberg , James Smart , Chaitanya Kulkarni , Alexander Viro , Christian Brauner Cc: bvanassche@acm.org, hare@suse.de, ming.lei@redhat.com, dlemoal@kernel.org, anuj20.g@samsung.com, joshi.k@samsung.com, nitheshshetty@gmail.com, gost.dev@samsung.com, Nitesh Shetty , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v9 8/9] dm: Enable copy offload for dm-linear target Date: Tue, 11 Apr 2023 13:40:35 +0530 Message-Id: <20230411081041.5328-9-anuj20.g@samsung.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20230411081041.5328-1-anuj20.g@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Ta0xTZxjeOac9FJOaQ5HsswusO5Nx2YBWWvaxiDhh25mYjcSMZMsSOGlP CqG0tZcJOhHoAK1yGQaiVUS2AQIGJgWCQBFbi4JRNxkymSJmJaTIRXRkAwXW0rL573mf73ne 25eXg/GO+/A5GUodo1HSChLfxOq0hYV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U47MrwxNprWC1KKPkruwMVfzQ69rjcm9Wi6Az7wzdkuL74zRy8MqckYmz+/3iq88YEiO brL5lE4UFgfH7ekNjAxomvP15MqCDy3bcu2KbRvnlueEr5l8e+xhxpBOqVd75g17Tg3HfHj0 whrsro3OX6U61aXoeee/dTzAmrW9MIg3YLrU3F0u3FWyX+fRZiurD4qsCzdD/zOsTbTQvrN5 S43VK8Kv6qXEwifkScJwAS6TC/8ACa8Kg1QDAAA= X-CMS-MailID: 20230411081351epcas5p3c2a85087cce368f6c2e0ffdbf18f29b2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230411081351epcas5p3c2a85087cce368f6c2e0ffdbf18f29b2 References: <20230411081041.5328-1-anuj20.g@samsung.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS 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-kernel@vger.kernel.org From: Nitesh Shetty Setting copy_offload_supported flag to enable offload. Signed-off-by: Nitesh Shetty --- drivers/md/dm-linear.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index f4448d520ee9..1d1ee30bbefb 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -62,6 +62,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) ti->num_discard_bios = 1; ti->num_secure_erase_bios = 1; ti->num_write_zeroes_bios = 1; + ti->copy_offload_supported = 1; ti->private = lc; return 0; -- 2.35.1.500.gb896f729e2