Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp614331rwr; Thu, 4 May 2023 07:31:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42/pRijjjXbaHpgZAqy/HvjW2VASWj9agQ7kFRqC5qTJNYlFJRhALUAGj1ZMXZ0O/OwSFP X-Received: by 2002:a17:90b:2290:b0:24e:f37:a6a2 with SMTP id kx16-20020a17090b229000b0024e0f37a6a2mr2345670pjb.21.1683210698044; Thu, 04 May 2023 07:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683210698; cv=none; d=google.com; s=arc-20160816; b=qPcUa0Ioo3kX11pwnoX0bNb5SKEGhCVkBVUoNyX+cSFFl3iuaJtE+7YSaTknK/TXNd w9dnFjKuS398zF0EHDKZwZ9amjCrsanfhYIG3gwtcbgrLt6ofnlWY+9LLZerts+xr5m5 sFV0dxd7cVhP5gaIK47ibRkJcC12vRuyurXFY78IefutEdW5z44f9/1dyz/zZsGDFLT2 n2KKtcEsV6t8mlfQwMDz4+qssNOmksRgHfGNUnUpagap4Vnplu4oxVJmlD6Ss93eEhYA +BHweo5HZXapnICHSWPFcayPzCWLAIVy5td7sZFphroq75ZqdfREF+GkpZm/ZYeUtX1a 0zeQ== 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=2oqt9w9se5xqD0xq3HO1YVubTWdxt3SKIiZ823pUMhM=; b=ohMeFDypU2Gm+t97OBz7cDDkkW3T/INq/Ales0g89enisdc2EPmbcQOe0nIg5+Qb18 JadGa+mVCEOEGYY55aGJaLGLBKphUrpYtG003xAoVGxjTbp+f0jUJ0UqTijCqK+swdBz CykZXECn2PUe73//x/PSry5nBpCO2qVRxbczyZwQopXR0F0egC9xwZYOezqAu0eE5nKx NxvRDs0OVVWtMWwidM4qOoY3U2+zYq2g3HoeLtzzqz7csSu14NPF/I6AOOW4zekTIV2g 0hPHNuqHbXUJnrBHgZ6wzZRQmVTccjgbhGqmK2TxCvJIuhe+YdEPqqpfpLWXO8QlU1Gj jJMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F3PADjC5; 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 em14-20020a17090b014e00b0024765bb4f7esi3899244pjb.25.2023.05.04.07.31.22; Thu, 04 May 2023 07:31: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=F3PADjC5; 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 S231205AbjEDOaQ (ORCPT + 99 others); Thu, 4 May 2023 10:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbjEDOaO (ORCPT ); Thu, 4 May 2023 10:30: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 04F9130DC for ; Thu, 4 May 2023 07:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683210567; 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=2oqt9w9se5xqD0xq3HO1YVubTWdxt3SKIiZ823pUMhM=; b=F3PADjC5+/weqCBCsjUBjjn/vcnUXNrNcXL4AdAjRgLT9z/cDLxWODUooNBZ5REX6WdOnY puaH3a050HlEpLqARwKYoTfwD+uZA/qDZU8RWSXkAXqFbxPgBqWQuNn9VrwBuKPdG/griW eYrQu3EG3ZmHp6tnwdEYdcajAF6+QuA= 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-621-A0_kp1gJPtGgj9ECZFr1Qw-1; Thu, 04 May 2023 10:29:22 -0400 X-MC-Unique: A0_kp1gJPtGgj9ECZFr1Qw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3F22685C6E2; Thu, 4 May 2023 14:29:21 +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 D29801121331; Thu, 4 May 2023 14:29:14 +0000 (UTC) Date: Thu, 4 May 2023 22:29:09 +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 2/3] io_uring: Pass whole sqe to commands Message-ID: References: <20230504121856.904491-1-leitao@debian.org> <20230504121856.904491-3-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504121856.904491-3-leitao@debian.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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:55AM -0700, Breno Leitao wrote: > Currently uring CMD operation relies on having large SQEs, but future > operations might want to use normal SQE. > > The io_uring_cmd currently only saves the payload (cmd) part of the SQE, > but, for commands that use normal SQE size, it might be necessary to > access the initial SQE fields outside of the payload/cmd block. So, Looks fine, Reviewed-by: Ming Lei BTW, there might be risk[1] when accessing SQE fields which were read by io_uring core code, and I'd suggest to document it in future. [1] https://lore.kernel.org/io-uring/ZDlcXd4K+a2iGbnv@ovpn-8-21.pek2.redhat.com/ Thanks, Ming