Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp636335rwr; Thu, 4 May 2023 07:48:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GG8MAN+wvUzDSAw9i1Ql6dBbAvq/XiQbv9VEYlVc07iQNced+P76xlMW8PmUJR+1OsQak X-Received: by 2002:a05:6a00:1a50:b0:5a8:aca5:817d with SMTP id h16-20020a056a001a5000b005a8aca5817dmr2921546pfv.5.1683211680448; Thu, 04 May 2023 07:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683211680; cv=none; d=google.com; s=arc-20160816; b=esOwaZIzej1qUF+6+7oVQR89v8db8B96j9UCGbcyec7u4aesg2LMMPsTUq6vIt9YM4 K2eADaSwLuvpAENm71OkwhU5YhqW4raMqc7HUwWA2ELH9rZJJqfZLCAG+T0TMzhf0iO8 Sh165g+3RQfoy7yxWBhRiWV8+XbAfmSEvH5kU/8lt3bYNd3lq0PiJSyUzrQmpRAI22/y DMzpq+jQ47Q5Rm+FSiG02agRoC3GZRyhJ+JSIA76VX1kz/h/PCKsZU4TuRqzOrOslKxn sTfryy/fJSeQys682OughGIewVfo6GMyo8guPrK6cnO7kjExbIi5wGLTXvpJE8EdkdgT bIug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qNvfYNf7RID1m406M40A6JjHQdIvWallHiWKlOcnlGU=; b=HI3iveATK8O6oa4T3dBbIbR/XjLincuiw7+UDemkwWh9z54xF7j8HpP2iu/irMxDR6 WdeN7K0EwS/koeBxPJ3fwIH2kJxL8wwf1asryswcKQ60WoDgSQdnyRZznS94pZJqWv2u zcqFfrfanyqRRkpY0/YBl5tK4OI/5nVXNUKgOtSs5inro+DHTYSUhmyaJQmhOnud3Ba1 F8bP0yEhFFhOvwVrlx3nAc9RPRjmVctTyD2BhCMsuWdc4rbawUH3UQK1IOUE+Jqnai5I 7los9df1/6bv1QiqiZDIik8J9bsMI2oC+E4n2V+PFgiJ2dg7YJsYDXaG9IKwEorVXnr1 VNjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GAAsw+EK; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020aa7990f000000b0063b21db5973si35096267pff.358.2023.05.04.07.47.47; Thu, 04 May 2023 07:48:00 -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=@redhat.com header.s=mimecast20190719 header.b=GAAsw+EK; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230253AbjEDOkw (ORCPT + 99 others); Thu, 4 May 2023 10:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231199AbjEDOku (ORCPT ); Thu, 4 May 2023 10:40:50 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB979129 for ; Thu, 4 May 2023 07:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683211201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qNvfYNf7RID1m406M40A6JjHQdIvWallHiWKlOcnlGU=; b=GAAsw+EKA9g7HDxLCwXtd8t+L0/rHfLaa+ME5w/Fr6D88yiwW1fkAGVud6jqWn1JssgnBl DzlohbBtwflF9U0dk3kQ/y8KKcfkjoK7OyrVnyQlpu5TFCJ+w+6PokE5P/DhnU1DMbhkPm 5UVMYASMen5b0SXKxXlM9BJFHktHpgM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-455-ktWtk1_JOk-mJpUN8m4EAQ-1; Thu, 04 May 2023 10:39:57 -0400 X-MC-Unique: ktWtk1_JOk-mJpUN8m4EAQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E3131884371; Thu, 4 May 2023 14:39:39 +0000 (UTC) Received: from ovpn-8-16.pek2.redhat.com (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6F7E7492C18; Thu, 4 May 2023 14:39:33 +0000 (UTC) Date: Thu, 4 May 2023 22:39:28 +0800 From: Ming Lei To: Breno Leitao Cc: io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, asml.silence@gmail.com, hch@lst.de, axboe@kernel.dk, leit@fb.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, sagi@grimberg.me, joshi.k@samsung.com, kbusch@kernel.org Subject: Re: [PATCH v4 1/3] io_uring: Create a helper to return the SQE size Message-ID: References: <20230504121856.904491-1-leitao@debian.org> <20230504121856.904491-2-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504121856.904491-2-leitao@debian.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, May 04, 2023 at 05:18:54AM -0700, Breno Leitao wrote: > Create a simple helper that returns the size of the SQE. The SQE could > have two size, depending of the flags. > > If IO_URING_SETUP_SQE128 flag is set, then return a double SQE, > otherwise returns the sizeof of io_uring_sqe (64 bytes). > > Signed-off-by: Breno Leitao > Reviewed-by: Christoph Hellwig Reviewed-by: Ming Lei Thanks, Ming