Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18880941rwd; Wed, 28 Jun 2023 01:51:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LJaJ/z+vLQ+7sObB6s1WwBT/0SQ+0RXPZxK2BaZ0kwZ+5ANQAWE2L5siuMaYVNlQxqmpG X-Received: by 2002:a17:906:fe4c:b0:977:e87c:e633 with SMTP id wz12-20020a170906fe4c00b00977e87ce633mr27725331ejb.23.1687942286509; Wed, 28 Jun 2023 01:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687942286; cv=none; d=google.com; s=arc-20160816; b=xvzJb4HiuVyTUG68EqVrvgWnlrg0xDCpl1IgiZvGvoGD9xg/IxyvQYOafWvplJlCvU tNHnPm6ssV16fM5pLiooXTK91eZJqUSn6dEM8V0s6VgXEg9TuOql1PPj/9TVhKodLOm4 NotYfIxxd5Hrj6Ij86WU7AfaopNdPBfcKxHwS34LLdFAlKyAM1gDCZTFwvbLuaxRRmS4 9UForKwH4wUXc8d3ZhE1pflkOuEZgbiVPTdxJCIwm9asgeXLXq/0+BR4/OdWi4gN+7EG w7PHtlGsdrTv6t4zIVSNRcp8aUS2y6/JJ29U6hmoUALQuCvOjeXY7vXk9aTme4VOhM+b xSfw== 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=; fh=OfBFM00WeJK6bR1TA0EHwvCVroKbEbX2NJp+Gh5QBEw=; b=ApARJzjb4NoIOz+HXSSadWOKWD+9774ntDC/q7azEnD+F5byj4uKCe1ST7oU4cF1iu kkeCgW/zOoJrZlwxcUP510+jX2QoljHqgveXKidnmw2r9O1FAKiB4Q5J27dV830JjGLH LqNIQ7KPw7eTTYgVWHWmViIwdQ/9Za9UrItTWFJFghLey0O6YXr5YSQFEKsKLtrAwwMw EukNUuPCjRehU4D9+O5x0WsneZjNGTZSIfNJWLY+KVwH8ql6iBINrHJpvOtarV5kYhHM GbzdW5o2RqeHcWeobk7FyouN5fCXPJEeczdfebbKwmRgrtP4CeQuSBZWMM2AW9gqB1hF 6YFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NRd+lGca; 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 l14-20020a170906414e00b0098e291bed85si4061638ejk.202.2023.06.28.01.51.02; Wed, 28 Jun 2023 01:51:26 -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=NRd+lGca; 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 S232517AbjF1IHP (ORCPT + 99 others); Wed, 28 Jun 2023 04:07:15 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:35477 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232762AbjF1ICd (ORCPT ); Wed, 28 Jun 2023 04:02:33 -0400 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230628064455epoutp040ea15afb713cc5bd982d14273b22a35d~sv6mmmimA2960129601epoutp04X for ; Wed, 28 Jun 2023 06:44:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230628064455epoutp040ea15afb713cc5bd982d14273b22a35d~sv6mmmimA2960129601epoutp04X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1687934695; bh=cp2ikyfpBdIhGRYkH19yhVPh/sP+Xdj/kjqikt163DM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NRd+lGcaozhMWc1I/VDbAqgD65RbrdsNheCym648l2bDAAo/kddI7DELMytBSKndC 9nGq3GXvK8xXayYda/z5mTyUJTo9PK9cVNtkqyP16a8nDhsJ0bXFrhA5PQnc8vXBzH LTD+zSLwfM56hREpY/nPJ2BLaoHS93KsbXjT00Ng= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230628064454epcas5p1105def2a4a48815b269ffb5a749e4a74~sv6l3pwdt2101721017epcas5p1Q; Wed, 28 Jun 2023 06:44:54 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.183]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4QrXBY5TSZz4x9Q1; Wed, 28 Jun 2023 06:44:53 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 46.4D.06099.5E6DB946; Wed, 28 Jun 2023 15:44:53 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230627184107epcas5p3e01453c42bafa3ba08b8c8ba183927e6~smCo_byDD0780707807epcas5p3p; Tue, 27 Jun 2023 18:41:07 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230627184107epsmtrp10062d7cd1e21b793dd2a7d1a851343b4~smCo9f2dH1856518565epsmtrp1a; Tue, 27 Jun 2023 18:41:07 +0000 (GMT) X-AuditID: b6c32a4b-cafff700000017d3-cc-649bd6e5a170 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 09.49.34491.34D2B946; Wed, 28 Jun 2023 03:41:07 +0900 (KST) Received: from green245.sa.corp.samsungelectronics.net (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230627184103epsmtip21d124411e8c89e5b7683f606750615a0~smClcbl4h0383203832epsmtip2j; Tue, 27 Jun 2023 18:41:03 +0000 (GMT) From: Nitesh Shetty To: Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Keith Busch , Christoph Hellwig , Sagi Grimberg , 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 v13 8/9] dm: Enable copy offload for dm-linear target Date: Wed, 28 Jun 2023 00:06:22 +0530 Message-Id: <20230627183629.26571-9-nj.shetty@samsung.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20230627183629.26571-1-nj.shetty@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02TfzCbdxzH+32e5BFu0UdQX3qzXLZ2h5GE0C+jdiv1qF3nzna36/6ITJ7D iSRNomV2N6q0rJrWj7LI0eG2+p3SWgilWjO6nZqWlWMO2c60GF0xZ1sibP3v9fl8P+/Pr+99 WDin2s6DlSzX0Cq5RMYjHBjt97y8fM1jFVL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zVl5xltoe7mrM3OVob2K5bOC2H6x/th4trOUL4m55kn+eYc4ds/V+nvLvfsyyu5 HRxdDhU+/P0sPvfainV9jysS23dFXvmYHXdT5867Vb0uhwun/H5e1zrNrcPD5pjGhc9Fa15J vAq+Uvf999+G2LA8w7pXB6u28bxiNlg2/fvib2fKNuiYr992auV92+dfWHsDL9qsCdC5Iljx b+Es7mbGJu5TO9MfiMnzJzX5P1nDfPJW/fmwuaExxzd0HFvrqsRSnJFoqMVcVJwIAJFLCRlq AwAA X-CMS-MailID: 20230627184107epcas5p3e01453c42bafa3ba08b8c8ba183927e6 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: 20230627184107epcas5p3e01453c42bafa3ba08b8c8ba183927e6 References: <20230627183629.26571-1-nj.shetty@samsung.com> 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