Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6978659rwb; Tue, 22 Nov 2022 23:49:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NiVMGCaln+HD280aa8gTGFzfgtlWtk0TEx6x6YfUOTlQ1uhvjIiNYLLf3I1mMne6Cn21W X-Received: by 2002:a17:903:1206:b0:186:a2ef:7a74 with SMTP id l6-20020a170903120600b00186a2ef7a74mr11479727plh.148.1669189745800; Tue, 22 Nov 2022 23:49:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669189745; cv=none; d=google.com; s=arc-20160816; b=Gg3x6FlWJX6Fl3zqV7TnQflReTiPKyxSxnIVoXgk4NXz10qK57nfgrbeNI1+rSXjci bxzn/7F0slP6IxnWrygy+6r561K/dTkHT67Q1ubIgRErV+xlMqT4/Na5kzm5PZH48Cwt R5DHmehiM1jzQdWl5AvkONuj9X/3hvN+YIkBH9K/Uq+vDxtK4ev+7sP7Nxbht4PfVyXv 7s7IZcjGqeuDNiTKqBc+MoqAN/zMjswD5mzigXo8BP3Q32HNYuTV/FzdF6Zw3oImlF94 jyhryVj3p19fGunE8nr0dMOyR9eo8/zjIn/aYpT1GnToOdCcuUqvM3FJnicQWXirBhSM vGQg== 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=5O5uDT9HWnn4Ccadtd7fTCupkIwM/OnWfdBNErBUieg=; b=xG1wVjcfaqwEpa0Pwn4kNrLmxs6h5vZY7K2SFaPo3phu0LOa9d+QzzKBkbFx60YDif CAppR/Z0MslajuJaZXfUvQimlqV7xgxRYe2MTEt/DDT5fR6fa0SdCTUQ/7BWPxIT5TG3 8CMZoXTYgec2+NQKWsk5tEZJPP8ZFU1nL52KctPSaRv9dc/TkVbR/qjU6IQs8x1DDQAo vJ7EebnF9fCTEk4j62nSAPJtynMnq1z2rWgbcPYmw9GcmMKpyf9Icg72F+kIKTZFqijK g2UOVYpVogUu+rjfr1QPBHYhU7sfZq0rD5WNwgRj1bXEhKcMPvzomsmXTVBAX79GAII/ 722Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="J+Mp0uJ/"; 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 y191-20020a638ac8000000b00477328e3f14si13700082pgd.157.2022.11.22.23.48.54; Tue, 22 Nov 2022 23:49:05 -0800 (PST) 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="J+Mp0uJ/"; 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 S236032AbiKWGOU (ORCPT + 89 others); Wed, 23 Nov 2022 01:14:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235433AbiKWGNu (ORCPT ); Wed, 23 Nov 2022 01:13:50 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25FC9F393A for ; Tue, 22 Nov 2022 22:13:47 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20221123061345epoutp04f03fd1ce27c8add8b240b68a5a4f4089~qIgcSw_v22261022610epoutp04_ for ; Wed, 23 Nov 2022 06:13:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20221123061345epoutp04f03fd1ce27c8add8b240b68a5a4f4089~qIgcSw_v22261022610epoutp04_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1669184025; bh=5O5uDT9HWnn4Ccadtd7fTCupkIwM/OnWfdBNErBUieg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J+Mp0uJ/u1QezkgGdk6cxZ6zr6/HgR++wRRwC4b22S7PuLmdEvzQBaNJ9o6OQJsMc I2oZOaIoaZ6m0Q13tWZ+zKnsNw15pxba+7UP3GwStQYKquOOme3zv7G8MQm9l2kNDI UtA58eDXJnUCjrBR2F8T98bL2575T+9iEbz0u7SM= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20221123061342epcas5p119115974f34a518d3b83d7dabac38e90~qIgZzf6Yo2805328053epcas5p1S; Wed, 23 Nov 2022 06:13:42 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.181]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4NH9mh4966z4x9Pp; Wed, 23 Nov 2022 06:13:40 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 83.91.01710.41ABD736; Wed, 23 Nov 2022 15:13:40 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20221123061037epcas5p4d57436204fbe0065819b156eeeddbfac~qIdtZjzIm1387613876epcas5p4L; Wed, 23 Nov 2022 06:10:37 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221123061037epsmtrp29863525cb7f744d91a2508cf38d69191~qIdtYR1U20473504735epsmtrp2Q; Wed, 23 Nov 2022 06:10:37 +0000 (GMT) X-AuditID: b6c32a49-c9ffa700000006ae-f4-637dba14c7fb Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id B9.C2.18644.D59BD736; Wed, 23 Nov 2022 15:10:37 +0900 (KST) Received: from test-zns.sa.corp.samsungelectronics.net (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221123061034epsmtip15ed7fc7e8497363a6f994535aa0d13b8~qIdqfGl_e2064620646epsmtip1F; Wed, 23 Nov 2022 06:10:34 +0000 (GMT) From: Nitesh Shetty To: axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, james.smart@broadcom.com, kch@nvidia.com, damien.lemoal@opensource.wdc.com, naohiro.aota@wdc.com, jth@kernel.org, viro@zeniv.linux.org.uk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, anuj20.g@samsung.com, joshi.k@samsung.com, p.raghav@samsung.com, nitheshshetty@gmail.com, gost.dev@samsung.com, Nitesh Shetty Subject: [PATCH v5 08/10] dm: Enable copy offload for dm-linear target Date: Wed, 23 Nov 2022 11:28:25 +0530 Message-Id: <20221123055827.26996-9-nj.shetty@samsung.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20221123055827.26996-1-nj.shetty@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Te0xTZxTPvbf3tsVVLoXNj7JH6caMMGjLCvtwgIsyvOwVpskeGoNNuaFI X2nLAOOgFRiCEcTBhPIQxjTjEQgFFMuKFUSEiWQ6MOJ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zd49cMuhOMpn15W/G5vGffpKz0Ty61e5v9nv57JCbd/nLZloi9jowf Jm6cd01TYFlg5ZmiaLU9bf5Nr1j+Nv7wW+QjeSOGxfdb2ro793Jez1DUqTa6oPNELPm7uuSv G70MTNsWB0yTvMUUcqTkTLHpizfJHa4Hdd/GhL/f1ah5altL0nrTbxe93ljFPK97nGNxJsdi Z2/V1ognHP+O7f69fLNGw83TZ8tF5+5U3Sp+5zd7gUT2MmOh5C/231weiXzfzf398KRz3DV7 Zmy+eEtkjcZFJZbijERDLeai4kQAu1HpnVIDAAA= X-CMS-MailID: 20221123061037epcas5p4d57436204fbe0065819b156eeeddbfac 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: 20221123061037epcas5p4d57436204fbe0065819b156eeeddbfac References: <20221123055827.26996-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 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 3212ef6aa81b..b4b57bead495 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -61,6 +61,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