Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2561211rdg; Mon, 14 Aug 2023 06:35:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+vit1mX7WAaF/52CrfJA2/4y8qv1nSD+wfEQSBkJXiQ4KCj8ytYrZFPbLvAYR7f6W8I9H X-Received: by 2002:a05:6402:540d:b0:522:582f:91af with SMTP id ev13-20020a056402540d00b00522582f91afmr12550109edb.9.1692020102108; Mon, 14 Aug 2023 06:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692020102; cv=none; d=google.com; s=arc-20160816; b=vnEGsKHc7gZbAY9v/JhYhU35FCPx9hQ3QgyzNwCjGQKLY/OE/YDi2aa8Q5bEzi9MWv W9/TqkSU8xn4qZi2poCHELfKRW9Qz1QMJFTvOn69AhIe/yeADcpL1aU0vyGxXhstj/Hf jn+8S+5lGpx4UpIRkaaVlLeNgqwpCHwUq73Ce53doNB9R8MPpL1EBf1CZSIgj0Vpelbq gy16o1fcNdwjNJD0hM6OUWPO1pVy84zt6kaRCBux/97gQgjTAKWFOnyD4jx7VempQ2Iy vVNemZRikFlGZxj9riVG/E6mGRNY6YOlvGjJ4ho8AiUvZwvoiZgjd4sLcMXdMy2JAWlC Keow== 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:user-agent :in-reply-to:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=TtSCb9KBJ2XHwOfKwyT3tCYK0FFVQAC/FyEVAI9BMkA=; fh=pDQBpZPllLr8bXpedZbEHupvuBBNxRAFkZCd24PUXDA=; b=IXFA9HLGFS+2T+QmQaeUu0GCTHkPbjj1YmXH4JJ0ymPbIsC/I1m5T/PzrfLVNj7+7Q iiF9ahbkDjOSaiUKpXEyyhTmsCAY/Chtp9h0kyH+YqwY6CFx2pecnoAlWPb+1ntWCs4g 8CygFsT8y5+2yfZw3stKmRWnJaFmVpcYL/ZGlhqHj3l9Av4DlsPtwHj4SqjkiDgh3sGQ pvTUDyj7vqpxYUCMQ41eiuwCU2/1dV4P6LsA5EJOqD8RH81yU9A5ThRgxy7GAlBuUhQk G77oXxtzokcW1pkfTu3LjZFtUE9fGnF7gCIH7Eixnv4ybvGgjFUhtexiIfEnya9zHSaw XdUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dhkdcAXL; 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 by12-20020a0564021b0c00b005254182a999si3793403edb.336.2023.08.14.06.34.37; Mon, 14 Aug 2023 06:35:02 -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=dhkdcAXL; 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 S231226AbjHNNCT (ORCPT + 99 others); Mon, 14 Aug 2023 09:02:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbjHNNBs (ORCPT ); Mon, 14 Aug 2023 09:01:48 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876A11722 for ; Mon, 14 Aug 2023 06:01:27 -0700 (PDT) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230814130116epoutp0110b12f23ff379d50409149b3b0c0bb23~7QXnirSz60678106781epoutp01O for ; Mon, 14 Aug 2023 13:01:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230814130116epoutp0110b12f23ff379d50409149b3b0c0bb23~7QXnirSz60678106781epoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1692018076; bh=TtSCb9KBJ2XHwOfKwyT3tCYK0FFVQAC/FyEVAI9BMkA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dhkdcAXLXQFgzYOEVb2yzKfCYyD3S3NWEjnr7pFpSbknHIaJih2dcolLX6+6rKE/Y EpOe33Qa0gOPkDzOUnKfvLXnXUFqjRE3CYKtOCAAJVHhLUw+P7ot9IurrXQsP+ALGJ 7Tc1i8LqnIoxwU8pChb/x4hxaYfhtDPCW1aebtg8= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230814130116epcas5p174c4ae8fa6883c326483da4c005b41ca~7QXm56LGG0176601766epcas5p1A; Mon, 14 Aug 2023 13:01:16 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.178]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4RPZK61vZgz4x9Pq; Mon, 14 Aug 2023 13:01:14 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BE.21.57354.A952AD46; Mon, 14 Aug 2023 22:01:14 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230814122212epcas5p37453fdef19909077528971ee54ed26e7~7P1gNwF260611606116epcas5p3C; Mon, 14 Aug 2023 12:22:12 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230814122212epsmtrp14a1aafb5de1203698ae6790f4309bb83~7P1gMve2K1933719337epsmtrp1B; Mon, 14 Aug 2023 12:22:12 +0000 (GMT) X-AuditID: b6c32a44-007ff7000001e00a-3f-64da259aa015 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id D1.07.64355.47C1AD46; Mon, 14 Aug 2023 21:22:12 +0900 (KST) Received: from green245 (unknown [107.99.41.245]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230814122209epsmtip2edb1c9a304e2560d48518e12f30945ff~7P1dR_UgZ0493104931epsmtip24; Mon, 14 Aug 2023 12:22:09 +0000 (GMT) Date: Mon, 14 Aug 2023 17:48:53 +0530 From: Nitesh Shetty To: Bart Van Assche Cc: Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Keith Busch , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Alexander Viro , Christian Brauner , martin.petersen@oracle.com, linux-doc@vger.kernel.org, gost.dev@samsung.com, Anuj Gupta , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, mcgrof@kernel.org, dlemoal@kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [dm-devel] [PATCH v14 02/11] Add infrastructure for copy offload in block and request layer. Message-ID: <20230814121853.ms4acxwr56etf3ph@green245> MIME-Version: 1.0 In-Reply-To: <3b1da341-1c7f-e28f-d6aa-cecb83188f34@acm.org> User-Agent: NeoMutt/20171215 X-Brightmail-Tracker: H4sIAAAAAAAAA01TfVDTdRi/7357A5v9HCDfzQpugaIGbDrmF4Ighe53acnlnV3xxxjsd4wY 29qYUCcniBggCPkWG8ooMV6PwSREXmpCtgaRL8TEeRZXUAmCCAcCHaOxQfnf53mez+d5vYe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uP7GR3GulX4iKa2q8+KWD18+t9bvFK1D Etvua1mr9l/k+7WiMG8qz9aQD2xqn6bEyf3/FG72Tt+SOU3WmmNL6DWPr3t6VbnypRoMjq01 uyOmKXhkg7uVoFitUsbiXewddnfv33bZeWJ35ZnkIzHTN7q8WmPCoMK4YOqDHOFP4mz3hDqb unYtDJvX/9w1lumlXGsqn/SplOnnrNxD9uzwPXN6efaRyxscPC43PPc+vFHFP6zzzQoeYdZk JZbijERDLeai4kQAwZ9RKVoDAAA= X-CMS-MailID: 20230814122212epcas5p37453fdef19909077528971ee54ed26e7 X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----nvFln8z3L_krFSQI_duuyTsYVGNcxCMU6qftyQwhOSKtHzaF=_54933_" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230811105648epcas5p3ae8b8f6ed341e2aa253e8b4de8920a4d References: <20230811105300.15889-1-nj.shetty@samsung.com> <20230811105300.15889-3-nj.shetty@samsung.com> <3b1da341-1c7f-e28f-d6aa-cecb83188f34@acm.org> 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=ham 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 ------nvFln8z3L_krFSQI_duuyTsYVGNcxCMU6qftyQwhOSKtHzaF=_54933_ Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Disposition: inline On 23/08/11 02:25PM, Bart Van Assche wrote: >On 8/11/23 03:52, Nitesh Shetty wrote: >>diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h >>index 0bad62cca3d0..de0ad7a0d571 100644 >>+static inline bool op_is_copy(blk_opf_t op) >>+{ >>+ return ((op & REQ_OP_MASK) == REQ_OP_COPY_SRC || >>+ (op & REQ_OP_MASK) == REQ_OP_COPY_DST); >>+} >>+ > >The above function should be moved into include/linux/blk-mq.h below the >definition of req_op() such that it can use req_op() instead of >open-coding it. > We use this later for dm patches(patch 9) as well, and we don't have request at that time. Thank you, Nitesh Shetty ------nvFln8z3L_krFSQI_duuyTsYVGNcxCMU6qftyQwhOSKtHzaF=_54933_ Content-Type: text/plain; charset="utf-8" ------nvFln8z3L_krFSQI_duuyTsYVGNcxCMU6qftyQwhOSKtHzaF=_54933_--