Message ID | 20231222061313.12260-11-nj.shetty@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-9452-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp900886dyi; Thu, 21 Dec 2023 23:36:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IG08ac5GcenOsJm/ke53LzUjqOURiyoMNZO0/qjJMNjEWsEAn+2QC7LlXqp8CbJm1jqyPWt X-Received: by 2002:a17:902:ce89:b0:1d4:13ca:ab26 with SMTP id f9-20020a170902ce8900b001d413caab26mr721209plg.68.1703230617780; Thu, 21 Dec 2023 23:36:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703230617; cv=none; d=google.com; s=arc-20160816; b=L5EgmpX6h6k67VAQmZXDwasUsn/H2v5o/iBM15RgkpxekhMBKiFGhxmMUD07GyldIX oqX9NRxvyaOhDpgZGavrGzTRySif9b9HK5NRlLJyQbmHVGS+2SS/8/No/O6qzqkyChDP rVwYCTxq60sjZpnl/ES+8ugiMCj3hO6dzk7WBYdgiNGR3ZEI2jxwsjXTClO0DeUioP8L aSgREKxpu7C88mr2O2h+/mOl8MG93snsEW8kiDZ8gKXMIV/5ePMrpPfpG1yCPGRlaXZA ZwOqADjxjs6F6Zr6c3NJqKbE6KyIxwlxSrJ5xoHn5100XrXmrSV3L0oSWOB9btrZYnZ7 +J/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=ve1xdmhje+5EA/lKMdfQIcdO/aY9KnYalMJf/3V4ggw=; fh=8nq/0iv5anXW/Yb5mzpSqdTSgzj3s6Wh77WDNPA3/ss=; b=LeBIaUj9AMyKYEbOFlTx4A061GfOeTxB7ARy12E4200EYzmjL8wsoY2zrCIAp3NspA QN6R2wUUBHBj6OFL6lP/VoP9biVW1s4vdvetpOOQU8CR0zHYKM8TA7KHFjhSsYj54EJg u/Ze1nAP9Q/oAIgYqmHtSH5CyG96j8emqkBNxZot1gegmE/yFns42TK9qi7P8gNSdl4C U3FHydzP25qT8+zB69FPpgFcDmB8bROsTKnjQWLMk04PGWAWtiFq2Qp+O6ZRkRDtUjRb iMQKfiM8MUesVor0nTXNozyeWQ7ikc/s2Txd87xngpjLcEfHrpJljkxUlEKJ8aFDnB8M VK1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Q21mH9Zm; spf=pass (google.com: domain of linux-kernel+bounces-9452-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9452-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o2-20020a1709026b0200b001d3fc142ad9si2714670plk.289.2023.12.21.23.36.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 23:36:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9452-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Q21mH9Zm; spf=pass (google.com: domain of linux-kernel+bounces-9452-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9452-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3BAD82839FD for <ouuuleilei@gmail.com>; Fri, 22 Dec 2023 07:36:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 194CE22EE6; Fri, 22 Dec 2023 07:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Q21mH9Zm" X-Original-To: linux-kernel@vger.kernel.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30CD62233E for <linux-kernel@vger.kernel.org>; Fri, 22 Dec 2023 07:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20231222073246epoutp043cbaa7b24ea55521cabea1bdc597d5cb~jFv6HL9Xt1645016450epoutp04z for <linux-kernel@vger.kernel.org>; Fri, 22 Dec 2023 07:32:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20231222073246epoutp043cbaa7b24ea55521cabea1bdc597d5cb~jFv6HL9Xt1645016450epoutp04z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1703230366; bh=ve1xdmhje+5EA/lKMdfQIcdO/aY9KnYalMJf/3V4ggw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q21mH9Zm9xMHWN1RohqpyRB/kDqKo80T9NL+ATnKx4Tw5i9a8GaEhAiBgZ4QgAKNs qce2pKdwswSXK1VZ6ZRttNyLGg8V0tNpExZQj2BI4HOtAWp9E9qd33KCq28BlW+VRk sCHrEN+mZZeX3qdh92eXhnUHX1UMCgbYmjTjK4Mg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20231222073245epcas5p1b3c6e576644a2b573d2d065012ce9e43~jFv5ghx-m2925829258epcas5p1O; Fri, 22 Dec 2023 07:32:45 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.174]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4SxJt40yHnz4x9Py; Fri, 22 Dec 2023 07:32:44 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D4.23.09634.B9B35856; Fri, 22 Dec 2023 16:32:44 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20231222062227epcas5p34a8e2395fc03b456b5fdb4b858e01d15~jEygs7JbK0954409544epcas5p3_; Fri, 22 Dec 2023 06:22:27 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231222062227epsmtrp14c1dc293656af35d18e50f68a873c1d4~jEygr3APY1655116551epsmtrp1C; Fri, 22 Dec 2023 06:22:27 +0000 (GMT) X-AuditID: b6c32a49-eebff700000025a2-ca-65853b9ba4cb Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E5.A3.08755.32B25856; Fri, 22 Dec 2023 15:22:27 +0900 (KST) Received: from green245.sa.corp.samsungelectronics.net (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231222062223epsmtip2fb23343255634a8809e53ce3053828e7~jEydWR4t50300703007epsmtip2R; Fri, 22 Dec 2023 06:22:23 +0000 (GMT) From: Nitesh Shetty <nj.shetty@samsung.com> To: Jens Axboe <axboe@kernel.dk>, Jonathan Corbet <corbet@lwn.net>, Alasdair Kergon <agk@redhat.com>, Mike Snitzer <snitzer@kernel.org>, Mikulas Patocka <mpatocka@redhat.com>, dm-devel@lists.linux.dev, Keith Busch <kbusch@kernel.org>, Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>, Chaitanya Kulkarni <kch@nvidia.com>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org> Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, nitheshshetty@gmail.com, anuj1072538@gmail.com, gost.dev@samsung.com, mcgrof@kernel.org, Nitesh Shetty <nj.shetty@samsung.com>, Hannes Reinecke <hare@suse.de>, 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 v19 10/12] dm: Enable copy offload for dm-linear target Date: Fri, 22 Dec 2023 11:43:04 +0530 Message-Id: <20231222061313.12260-11-nj.shetty@samsung.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20231222061313.12260-1-nj.shetty@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01TaVBTVxTufe/l5cEQfIC2F9CWSaedAdnSAl42i1XjE5yBqaXj2FqahlfC AEnIItT+KAi4YAWJtcWwiEgtokNGgpS1ZbHG4AKtxUDaKJ2yUwSxyiiLTQi0/vvOOd93z/nO nUPhrqe4HlSyVMUqpKJUPulINHR5e/uVhuex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7MdC7o6LOdsWLsjuEYYIjUWx6/3ZSyMrxwxP kiKb1YrTzlVp3qPyL0G5xS9jJgaz94V2eY8EbE2ZIR38UVWnb5ME7d0i26iT9JisOxaFcm7J C3ZfDVsdMm/O25yNkjFtmiqwt7Jk9HOt1TL8zHqsvHPySVty3dqiiUM+4c6KvbvOruOV/Twy UNnavWd7zeDZrdTOvnpz4IH0UkLcfS+FdYSrRLeXNnYXdPguuTY5lpmh3JxkG5i1LksUrE+s Tn7asJiN4IskQn5LfGXhJ7/whjBvZ72AUEdKg4W4Si39C4HaAd1gAwAA X-CMS-MailID: 20231222062227epcas5p34a8e2395fc03b456b5fdb4b858e01d15 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: 20231222062227epcas5p34a8e2395fc03b456b5fdb4b858e01d15 References: <20231222061313.12260-1-nj.shetty@samsung.com> <CGME20231222062227epcas5p34a8e2395fc03b456b5fdb4b858e01d15@epcas5p3.samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785966747831584896 X-GMAIL-MSGID: 1785966747831584896 |
Series |
Implement copy offload support
|
|
Commit Message
Nitesh Shetty
Dec. 22, 2023, 6:13 a.m. UTC
Setting copy_offload_supported flag to enable offload. Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com> --- 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 2d3e186ca87e..cfec2fac28e1 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;