Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp274924rwl; Wed, 29 Mar 2023 01:22:17 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2YL2T8KWiqq0faPPBVccre1yZmI1QPa0YMpV87W3zoSpsDHHd1u4UwtOX0XicuhsUTVjj X-Received: by 2002:a17:90b:1c8f:b0:23d:39e0:13b with SMTP id oo15-20020a17090b1c8f00b0023d39e0013bmr20105278pjb.43.1680078137435; Wed, 29 Mar 2023 01:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680078137; cv=none; d=google.com; s=arc-20160816; b=dKs1lDm8cqY+vTXbAPZ57QBiJLu2vK/lQZ1a+aue6JvSkjftRdxGLXKDXMwkBLJ7dq iYybZKf+Xjce3MQ8kFEOYpK9EDpyOx5qCJilDY5u1vL9d7VcyGWT2y3FuYK/qYVPiJmG suYrpmdc/CS+Nqby10b/CTmZOuk7q3uPibbqS/FfR3m0dseb9OMk0aEa1jI7O8Mm8pYo /uAH/pP+KMgoLOtEBfDS8yY+PVa7HmA7OLN3vDKelK9JVm2XASrYr1HCONxrOUac40r0 waZYHVsZhCD08Wn6I7qREOlJRZk8581Vi9ZLDW76XVEb+IWW1ukeExuzJc0TxfbZK5Qa 8VJQ== 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=Xr5pG5YQRmNwtteFma8PSAfaeXx0TOavDZPZ9ALIkAQ=; b=qM7c4OlJqJr5pbrsgix32lP8vL0so4yhp1xxdKbWC+ACqWynokmsUcmji41aTNmEUJ J5l1JGbbIQZ+EF7paXaiS3ugXQJQYBldOeHie10GBEVQ2eHo6iE5aIzuAzrPmNTua7BS +xcGa75gC6WvFskPGVODJ2ti92bq8D1cBvVOoFeJbdtJQjh2WbRIVe9dOT/Xkm2D2iCR /XFaSDa++1j5woDW4+hzxqSE2K0WKWEn7q2gYY6KJadUnxa2qNjLoQY5d5oK3ZOVBLFD RYtGvLUc1SPAyY8LsWIrTJxnVU4GqpehEEnd5Stp/UAPpBcH3U7dRxwB/XPglPhST0/P xlKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RUmu20Nu; 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 v16-20020a63d550000000b005136ea8b484si4199320pgi.161.2023.03.29.01.22.06; Wed, 29 Mar 2023 01:22:17 -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=RUmu20Nu; 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 S230516AbjC2IR5 (ORCPT + 99 others); Wed, 29 Mar 2023 04:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230483AbjC2IQ5 (ORCPT ); Wed, 29 Mar 2023 04:16:57 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58B234C2F for ; Wed, 29 Mar 2023 01:16:31 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230329081630epoutp0355f43d08414ae79e816a81ed50fe5012~Q1dlXAyi70376903769epoutp03V for ; Wed, 29 Mar 2023 08:16:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230329081630epoutp0355f43d08414ae79e816a81ed50fe5012~Q1dlXAyi70376903769epoutp03V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680077790; bh=Xr5pG5YQRmNwtteFma8PSAfaeXx0TOavDZPZ9ALIkAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RUmu20NuzDnC+HGx33YnJktvWo/SM3cRedufcqsmKYUEXDQCN7EVDMV9PiTLeKYSp VveA0KvJWCb25V1qaeVnvqG7N/AAinKWQw5/uH6H+bhTE/kCvKSuoHXKjbVXy5fuNr ChlUOIkdQ+UsMcnUiVbmTMkH+stddf7pTBErgEV8= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230329081629epcas5p29eacb83ce69432a0ad642a245c809ee4~Q1dkxESEl1635016350epcas5p2t; Wed, 29 Mar 2023 08:16:29 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.181]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4PmfXD1pMqz4x9Pp; Wed, 29 Mar 2023 08:16:28 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 2F.D5.55678.CD3F3246; Wed, 29 Mar 2023 17:16:28 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20230327084322epcas5p12f01e676e47d3c8ba880f3f5d58999b4~QOid0ghRO3074330743epcas5p1R; Mon, 27 Mar 2023 08:43:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230327084322epsmtrp14a16237c5338352e007443853faae221~QOidzab1c3087630876epsmtrp1O; Mon, 27 Mar 2023 08:43:22 +0000 (GMT) X-AuditID: b6c32a4a-909fc7000000d97e-79-6423f3dc0d61 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C4.4C.18071.92751246; Mon, 27 Mar 2023 17:43:22 +0900 (KST) Received: from green5.sa.corp.samsungelectronics.net (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230327084318epsmtip1e924ae0d72b9b7a598d9de0e0ac183ae~QOiakAl-c3003630036epsmtip1N; Mon, 27 Mar 2023 08:43:18 +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, damien.lemoal@opensource.wdc.com, 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 v8 8/9] dm: Enable copy offload for dm-linear target Date: Mon, 27 Mar 2023 14:10:56 +0530 Message-Id: <20230327084103.21601-9-anuj20.g@samsung.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20230327084103.21601-1-anuj20.g@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Ta0xbZRjHfc9pT8uweLiYvesca85QBAVabOFljKkZM2cbM3iJH9SBDT2B BmhLL264MJEONggVZJFpQS6KRugyXMe4toQxGQKBjnBZysZtlk1ABhveCcOWFt233/N/nn+e y5u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hq3DEasF3l5mJ3n1zqMd96tdrsDHfIfc6iJkdtXvzw1g5DwfiF9d9G0etF TfyLG80PTcsEXXvu6lMaRleFpXFZ8tUr7+Tv8QQv8sOeVa7s6rib9DTp/L4cqf1933Ltlymy 5OgTXffXefr12pe1Ubk/sg+IG3Wnr8y/pfQpn7W594LWsv5a9biGxJPpStfbGz/c/ve+HRmv zfnUsvVjTma4qJtlurmPM6IqNmwxlmxbIMheQWbJpEU+EyQlRvexw/LMeqck6tLAhjs76eTb 8unPvq7rFL7fEiQtut7tmismNAcVshBcrVH8AmNSxplZAwAA X-CMS-MailID: 20230327084322epcas5p12f01e676e47d3c8ba880f3f5d58999b4 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: 20230327084322epcas5p12f01e676e47d3c8ba880f3f5d58999b4 References: <20230327084103.21601-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, 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 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 3e622dcc9dbd..785a6822d06c 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