Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp637104rwr; Thu, 4 May 2023 07:48:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Z87ucR0Yt4o3iHRfGfA+gC6u68vwlU/EkUVil6ocqUt3XqohHE3Y1nRKdLo3s48WrhCWp X-Received: by 2002:a17:902:74c5:b0:1a5:1f13:67fc with SMTP id f5-20020a17090274c500b001a51f1367fcmr4154858plt.31.1683211718037; Thu, 04 May 2023 07:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683211718; cv=none; d=google.com; s=arc-20160816; b=oMN8fahsuW05pmxibW77+pEqxJ/kYlmgMmb2a/Fuy3eHJvSEXOnHj+8G3nOFgUVXy6 stSDrGHS2bjKAimYv8n7CpgrceYEMXws/YcHk6xXpCElqFiURR0NFgxtZRIpTqLBCzPc aqE7Uh4PK3gyflcz6oP8TS+ZTpOnBYlhhISVuS+fEEGkxIF8L4zHJdwNV603QRddgBJL 2QD34iwBUwB2S1ZIU3GFCoNmtrS/TPAGfl5I2nLOLunsxTdHRTDIdKZQ8Si0pe6vDfRV 9xXvyxPJNMeDFGQtk+RM+uqPBi8w5SQXikg6Cvw+xaqoM8rFz+Mg4/uzIYWv8FY0GzJH kpJA== 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=uvHjox96ToDS6v8WQFCM85pSp37qrGwYc/dcWxuXOUk=; b=ZzOwqSf3InDZti9KKx4d8tdzIBChmpeHVyUcfPifvhjfLFhbbPCuvyvzWq5wROBuGn qwuUeiWi25pijtz3OWNMupbOZWEwrNx7dx5ApC8+IEI8LMsvdZ6Tb4q/eIG/6G/kd8ZO y2+sve+YF7F9iAo1zE4rWSuqKHVaxlz1DvU1l7h0oR6/uuIiG7wOiylRzlLwVHDswGRM NcJ74zd0bN+MbR3go0ojVfr7y/xvOJ2I6/AivdP5SfPmOsxVKl3+PlfkB4Wy3SQF+eXl 3/uG2u2uti5lGmvawZ+p3Cxj3uMRApZj4jk46wcaLfJE7SJXFCaNYaBHHAHWRCSOjrfJ d/ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DoC40+Ni; 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 d7-20020a170902728700b001ab23d42f37si3101391pll.258.2023.05.04.07.48.23; Thu, 04 May 2023 07:48: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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DoC40+Ni; 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 S231157AbjEDOlS (ORCPT + 99 others); Thu, 4 May 2023 10:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbjEDOlO (ORCPT ); Thu, 4 May 2023 10:41:14 -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 421D11A8 for ; Thu, 4 May 2023 07:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683211232; 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=uvHjox96ToDS6v8WQFCM85pSp37qrGwYc/dcWxuXOUk=; b=DoC40+NirBWXjCF5wa8wwRxuGE3Rd+fIj5bJ11V4JbR40fl7Q3yLiq0FGQx8DRKgBtgUfN bncwrC9EpsVOx6sPAqJpMdwEAkb6xNZUpXYTDy+ADzcLJOubsU/kBKqbaOv3UNJM3sbd0Y wVxd+NagP6bIf9mT/YZTlVRqc7O2f7k= 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-673-K-Hn359RNia3YVI7sMxXKg-1; Thu, 04 May 2023 10:40:29 -0400 X-MC-Unique: K-Hn359RNia3YVI7sMxXKg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7B42588B7AC; Thu, 4 May 2023 14:40:28 +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 62B0040BC799; Thu, 4 May 2023 14:40:22 +0000 (UTC) Date: Thu, 4 May 2023 22:40:17 +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 3/3] io_uring: Remove unnecessary BUILD_BUG_ON Message-ID: References: <20230504121856.904491-1-leitao@debian.org> <20230504121856.904491-4-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504121856.904491-4-leitao@debian.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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:56AM -0700, Breno Leitao wrote: > In the io_uring_cmd_prep_async() there is an unnecessary compilation time > check to check if cmd is correctly placed at field 48 of the SQE. > > This is unnecessary, since this check is already in place at > io_uring_init(): > > BUILD_BUG_SQE_ELEM(48, __u64, addr3); > > Remove it and the uring_cmd_pdu_size() function, which is not used > anymore. > > Keith started a discussion about this topic in the following thread: > Link: https://lore.kernel.org/lkml/ZDBmQOhbyU0iLhMw@kbusch-mbp.dhcp.thefacebook.com/ > > Signed-off-by: Breno Leitao > Reviewed-by: Christoph Hellwig Reviewed-by: Ming Lei Thanks, Ming