Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5573642rwd; Mon, 5 Jun 2023 05:49:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nkqVEfLJh+iohHo1TmSA9873UxJ9keDK/pxOM9Uvyv/aWAlfzAvXNxLS9edqPa1ZcYAmU X-Received: by 2002:a17:90a:f40e:b0:256:82c0:8120 with SMTP id ch14-20020a17090af40e00b0025682c08120mr3649220pjb.13.1685969397315; Mon, 05 Jun 2023 05:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685969397; cv=none; d=google.com; s=arc-20160816; b=srfWk39aPFI3VNgxoUp4H5bk+tNcOe4oEmAOUlr0P8bf3co8MDHRg0Nv0hlQf9uZfy xvYCNj4lbmTpe+UZCemcxZEiaznKedYAd5PlAXTUtsLvw56swrrDu3l5yYkhgVekFTgH OXx2m0q6KLdXX8qLuvCRNGGj7WZtueC1XZR3ZP639tmpykQQ71gnb9vNDfEJCa1zI7iY 8KCACcz6n72wa1D9PshZajWqKU8D1H/V+5GMdkdM2rpO5jVAQC5MCYXIt1udPeQ5RecE /QTyy70/ol7ZzpghnFgNHcjIKnVjb55C5LCK5LSBRIwaSpNPDTIb1xLaKkWlW4FEZWWD ZrXQ== 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=cp2ikyfpBdIhGRYkH19yhVPh/sP+Xdj/kjqikt163DM=; b=VvkwoI+1zdwLuljLY7N2cROfnU9uK6J2WNxD0tseCUCsqlRCmfct8EbsXfS9IcRQ2x +fm1GkZD8uqzqUFZBrg1YnrjL+ND1ndpnjeGrk7RjF3Bda3X9fZwj638QMLYsUpUUAUl k87mUgR8YippjKXEHP/VJfK88dIfN0oiD/9bxnvUUL7x71Z1PlUQ51bBkLdAcfh+r97N Uv0fESbX7z3xmaaHDuYcdcNL+FpnJ0DSkNjwbMzHdJ3cpaDY2ZKmyin0gMERsLqFQgqY /15GWujJNGqxP67iy05TkoJTe/He0Ly8KlVQcySYcioIsBHbvajl1dgRLnu2BUAAH/7e s28w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WZd2sKjT; 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 lc3-20020a17090b158300b0022c24bf1810si5448881pjb.29.2023.06.05.05.49.42; Mon, 05 Jun 2023 05:49:57 -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=WZd2sKjT; 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 S232400AbjFEMbe (ORCPT + 99 others); Mon, 5 Jun 2023 08:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233684AbjFEMaH (ORCPT ); Mon, 5 Jun 2023 08:30:07 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42B3611B for ; Mon, 5 Jun 2023 05:29:57 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230605122955epoutp013858049b076b6dfb331f08452c4c4d3c~lwyQhgumK1441814418epoutp01Q for ; Mon, 5 Jun 2023 12:29:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230605122955epoutp013858049b076b6dfb331f08452c4c4d3c~lwyQhgumK1441814418epoutp01Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1685968195; bh=cp2ikyfpBdIhGRYkH19yhVPh/sP+Xdj/kjqikt163DM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WZd2sKjTNiucvGt243+3gh20yK9G3bPvIfM4Y/lg77gXFXbY9yCUIucN4EZQVzz1w 86/GFU1Q9zdvAXqRe3yTupd4fsOJFmQY+HxT6VVJItRGImcjjmZjcMXjYIxuRxO3ml 6IsqiEo9E91DWoyRozQKKvB/RTxgCXDbgCHt+mRU= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230605122954epcas5p229827afd5b605331722ca1efe39ab864~lwyP7jP3I1471314713epcas5p22; Mon, 5 Jun 2023 12:29:54 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.176]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4QZXxF4ZS0z4x9Pv; Mon, 5 Jun 2023 12:29:53 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 10.6D.16380.145DD746; Mon, 5 Jun 2023 21:29:53 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20230605122402epcas5p2d2fc7493b04aaa70363324429411e689~lwtIQAFJl3244432444epcas5p2Y; Mon, 5 Jun 2023 12:24:02 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230605122402epsmtrp2ba078ddca865e8855cd175a22e7a9086~lwtIO99cp1056210562epsmtrp2j; Mon, 5 Jun 2023 12:24:02 +0000 (GMT) X-AuditID: b6c32a4b-56fff70000013ffc-24-647dd541d8d3 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.BC.27706.2E3DD746; Mon, 5 Jun 2023 21:24:02 +0900 (KST) Received: from green245.sa.corp.samsungelectronics.net (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230605122357epsmtip2c0fc194d4469fec3c69fc0db88c10697~lwtDg78hu2527325273epsmtip2o; Mon, 5 Jun 2023 12:23:57 +0000 (GMT) From: Nitesh Shetty To: Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Keith Busch , Christoph Hellwig , Sagi Grimberg , James Smart , Chaitanya Kulkarni , Alexander Viro , Christian Brauner Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, willy@infradead.org, hare@suse.de, djwong@kernel.org, bvanassche@acm.org, ming.lei@redhat.com, dlemoal@kernel.org, nitheshshetty@gmail.com, gost.dev@samsung.com, Nitesh Shetty , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v12 8/9] dm: Enable copy offload for dm-linear target Date: Mon, 5 Jun 2023 17:47:24 +0530 Message-Id: <20230605121732.28468-9-nj.shetty@samsung.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20230605121732.28468-1-nj.shetty@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Te0xTVxzeube9FCbkUtk8wobsOuYAgXZAPSD4GGhugE2MS+ZGFmjam0Io bdcHzhEzGqYbD4sgLwtBECZQpjgeXSl207LJ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Y0T4PdY1JIjpFlsFt5Dglp/pHMcorUIOt DPvi4B/9sGYERE/taBoeFxpkqFf3Pt1MpK51xSd0DyzQjKrYL5nXtcNyWlk7kGedlSscVhlp HsOIXf67EtQitzTJLI6ZFvD2w4qWQ0tmGczRzKpIuyN2wZrxo4Ivcl95e/yz+Uf5sTayZ6VG 0R1evc8gyT3q7M6u2NjQLH6VI9WXV3zsEM6b8Wjp99i49cuCXNaQmUCtdO8ypiVm9WVN/iAN 7A7NfjVaaF+YJbtQ/CDEt6G4srGi09ERvFy8I14n3unY5upMYuZMYkIem/oDj01I7CnKT19c rpIuySkM/oUvBXWZs2XRe1Zv+XpvZy8RZXoojzrn9d7XN4405MkZgk+VRUhwFS/7A62CYfhv AwAA X-CMS-MailID: 20230605122402epcas5p2d2fc7493b04aaa70363324429411e689 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: 20230605122402epcas5p2d2fc7493b04aaa70363324429411e689 References: <20230605121732.28468-1-nj.shetty@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, 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-kernel@vger.kernel.org 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