Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1236734rdg; Fri, 11 Aug 2023 14:39:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFc9Bc+ql+SEzwz8mRHMoQOGkCGB7LWlusU9mQPRSGxwgSRBqE1T5QXTjVqgxcva/5jy9eV X-Received: by 2002:a17:907:b1b:b0:99b:cf57:11e3 with SMTP id h27-20020a1709070b1b00b0099bcf5711e3mr2646629ejl.59.1691789971953; Fri, 11 Aug 2023 14:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691789971; cv=none; d=google.com; s=arc-20160816; b=X6/eiVSwNuRArVQj51qMD3Ki+7uSCdtBmGyatahdwPCke01lbuNGWmm2dRPgv/O1US yqR1HCJktmj/7/2rcitGobaAfVk76PIRghYITbdLPmmudyodfuKRCTsDfETc9UQLfK+/ ld3HrR4hs1lVO4prBFZtwZT1AvqbY14/U/mWZkjDlAS0mPY5xXumOUK5mlj/KxWkUhOV vsDN5Hcu5+okTXxBdJgsyLCyxxZ4FqjkjEtTAdbnCsjtc78GYE2R1qrV+wHOIDBHXghn 1TZGAucYVIM2ENpKtmUS7e8qN9rHm8gcB5SBzFDCkY8aifMHNgQ5KzrysD6vijZb/IuW ZYdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=jkael3S2pdg/VfM2aJEaWso36Tz2Khr7pAvSvEHl94s=; fh=cAbOUiFLjTeW77TQOgawX0tk2ZYaCn9Nl4YOSZpwi/c=; b=e/+C2XE1PwQnnXEMpp0y6LbI6X5oEbIeM/cYtd1AcVfgPrIdrUu0LLx0XG9sG4qFWu NyKFLedfBAddE778xlccU3cMF5wvA90tGez1EAn8dcUNYA1Z2qy93H9asOEnPcqSvEvw clcj+gRb2+Hx9UQJiWTXvpF5dgBh3WbbJjPHpUMkLt2lhnMFoneobZ32YHV1uAfhik7M tV4dWPOhilAceGvoRTNEE7bFauba3FVYeQC/2A5SFtsHPhTfyLdokkf3+Z3d/QVuSj0q r+elngEQ9AfYAnBPCt6UFrzKhdqnuTHeAkkKzrn0ypdiToMKf8x3IEQghp4KWaDXP4t/ XfDQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jw26-20020a17090776ba00b0099bd39dcec3si4016139ejc.95.2023.08.11.14.39.08; Fri, 11 Aug 2023 14:39:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236554AbjHKV0U (ORCPT + 99 others); Fri, 11 Aug 2023 17:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236942AbjHKV0H (ORCPT ); Fri, 11 Aug 2023 17:26:07 -0400 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C2C32684; Fri, 11 Aug 2023 14:26:02 -0700 (PDT) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5655f47ae3fso1418353a12.1; Fri, 11 Aug 2023 14:26:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691789161; x=1692393961; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jkael3S2pdg/VfM2aJEaWso36Tz2Khr7pAvSvEHl94s=; b=Sh4HHYe/Rz/dg/H5o717KaXy0D1F/lfULPWTBy/iqDBt/PK8CxPRi7Ttwu2mHTvD3g YsweqgxQBV+Kw3CVCWotszr6Hih2NFcMaR+gNUGGOu7XRRPaIwU4kmeUlB6QIJi+MEII GZ1LGfQ8TgpYz/vgeSilmQRKSqLzAQxC6QM+3WW24NgyB0waYrvhmaP6fxlAy60gcuOv V5fgmjFZ7a5A+rL4cNVLMf1K8i25UmlstL9CyFFdzAWSXm74Ik1iXcultXSUd9LUiFqv AnWOmS0WzDpUaI8DE5QIv45/SV4jCGmLnoM2VgvbyKlvFDVcGpC2gNqHMgLr7rKDHvku cX5w== X-Gm-Message-State: AOJu0YykkXoEGgu8ZFQqwNZaul1Qf4M2keTOZx0FH+SR9d4RT3YiDmyG 0G6xfQ8QlaAs/RspdwIa4uY= X-Received: by 2002:a17:90a:bd95:b0:26b:ab3:493a with SMTP id z21-20020a17090abd9500b0026b0ab3493amr2567330pjr.16.1691789161399; Fri, 11 Aug 2023 14:26:01 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:cdd8:4c3:2f3c:adea? ([2620:15c:211:201:cdd8:4c3:2f3c:adea]) by smtp.gmail.com with ESMTPSA id e10-20020a170902b78a00b001bd41b70b60sm4386849pls.45.2023.08.11.14.25.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Aug 2023 14:26:00 -0700 (PDT) Message-ID: <3b1da341-1c7f-e28f-d6aa-cecb83188f34@acm.org> Date: Fri, 11 Aug 2023 14:25:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [dm-devel] [PATCH v14 02/11] Add infrastructure for copy offload in block and request layer. Content-Language: en-US To: Nitesh Shetty , 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-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 References: <20230811105300.15889-1-nj.shetty@samsung.com> <20230811105300.15889-3-nj.shetty@samsung.com> From: Bart Van Assche In-Reply-To: <20230811105300.15889-3-nj.shetty@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,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 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. Thanks, Bart.