Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp734645rwr; Thu, 20 Apr 2023 05:57:39 -0700 (PDT) X-Google-Smtp-Source: AKy350a0uQW6QTQ2XNwivnu3dRqb1Ndsg6cTVpS7UmVF9CY4btLVR0uM6Xevh5D5qlWIaZTh7YeG X-Received: by 2002:a05:6a20:918c:b0:e9:4683:284a with SMTP id v12-20020a056a20918c00b000e94683284amr2805450pzd.4.1681995458836; Thu, 20 Apr 2023 05:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681995458; cv=none; d=google.com; s=arc-20160816; b=sPU7y4+9rOLw1cc2e+FrPxkNeMXKmlLt4Q70udfHtK1/erg3zpOSK8qauZPrSaHDfz PLlxGjfpUmCUpAYTU92twqxmeyYznbOTz0UbVe213nV5BBbVlwQVKC/STIBM04QzrV7R zvhWZB14nj4hJQ/ZTh26HCMzvknrlE3txHGkXI4+PsnuSGGL8X+Detm0r+ybU3A4SBBq uThplNzaeQby/QlAZXKCuF8KAseZN+PsF/qOoxYhDXkpjJtYJ8QchBpbGWmxVwBkSSVU dDQuE/Zqf4yajWUzuGNyQQLzSdZUKzogSaWM0jaJidDz0HDbRMEZLksx0g1Udbitd9sG OL+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=M1wx1VFOjSSC47jnUS7HWKvP2Skg+waiLnuPs60z6UE=; b=fwPk+tZGlQzelLKdzTo0X45tspXqOI7atN+hZRzFRPH2QrewEhx6pKP0zaLK1+c7jk 1AkVVaOJCmnbDyPI+Ew/meT4MbuEW54xrNrcxuTZTC/Ut/pk5bsX1vhk8WsdCoyzXQ0L Wnowl2Evk0mc+eHzJL47SwAwzChJQQgEgf3o5+eoBilZQ3x3FFpAfeyk0tGezaJ25Dwh 4BJIdJcfL/hBHgma5cf7fvp5UAfSMDijCxjP0HCffTkDcOVSZSGclPGNrpZW1KOz8JyU uPJOcaEqv2Gt+QyE6Hk8qWxDakV9OF0LlUTn2FvmvwnZthHcbYlirlzBO28PknUO23kc xugg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b004fab4df6dfdsi1549065pgb.369.2023.04.20.05.57.27; Thu, 20 Apr 2023 05:57:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233734AbjDTMqc (ORCPT + 99 others); Thu, 20 Apr 2023 08:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232217AbjDTMqb (ORCPT ); Thu, 20 Apr 2023 08:46:31 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7185E61AB; Thu, 20 Apr 2023 05:46:19 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B599B68AFE; Thu, 20 Apr 2023 14:46:15 +0200 (CEST) Date: Thu, 20 Apr 2023 14:46:15 +0200 From: Christoph Hellwig To: Breno Leitao Cc: Christoph Hellwig , io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, asml.silence@gmail.com, axboe@kernel.dk, leit@fb.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, sagi@grimberg.me, kbusch@kernel.org, ming.lei@redhat.com Subject: Re: [PATCH 1/2] io_uring: Pass whole sqe to commands Message-ID: <20230420124615.GA733@lst.de> References: <20230419102930.2979231-1-leitao@debian.org> <20230419102930.2979231-2-leitao@debian.org> <20230420045712.GA4239@lst.de> <20230420123139.GA32030@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Thu, Apr 20, 2023 at 05:38:02AM -0700, Breno Leitao wrote: > Since we are not coping the payload anymore, this is not necessary. Now > we are copying 64 bytes for the single SQE or 128 bytes for double SQE. > > Do you prefer I create a helper that returns the SQE size, instead of > doing the left shift? I think a helper would be nice. And adding another sizeof(sqe) seems more self documenting then the shift, but if you really prefer the shift at least write a good comment explaining it.