Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3773751rwl; Mon, 27 Mar 2023 20:22:49 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTkOv/WpXtunCT4PMqCZxEku2yJfvj7nwRdbWesGtB7OjaYemoOqSKV+bW27xSR4RMbXok X-Received: by 2002:a17:907:a64a:b0:92e:e9c2:7b9c with SMTP id vu10-20020a170907a64a00b0092ee9c27b9cmr15795978ejc.77.1679973769127; Mon, 27 Mar 2023 20:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679973769; cv=none; d=google.com; s=arc-20160816; b=vn/ugNgmf5pic6Gn2sOiJJjVAZXxAzjP6g7pWJUcu6Yt4uWvORpJA3wQhWDMZ6R+W9 g+de5+9G+ZrL7RJo29niDDXjXIU3Bcgj9bl8KFegJ28OIC74GHF6gadqK55H82AfLxcP 5PcXMVTMf7Ns8osx3gwbwK/q1yX+rUPwxrea8/BuTOjbE6c+4sgl572/83es2bL5AbZb +pBDkPhatX3PKMU4TmlfGcS62xVBW3zOj4ooazrr+MOXiBke2jcyaSRyEXTq6KZ+dVLT PrQPJ/xxYBgVmvUPoVujbAJIXHWOaiQ9JazkUxY6SPueo1ZvEe9bqn+Smtcrf//l+nKR YqAg== 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:subject:user-agent:mime-version:date:message-id; bh=QHV6x09cXmq9dO5+de2eiLp0izDD+zLbpdc7cNkOMew=; b=Wl1W2VVESNuw4/eaUn+DrmZt3+wcjSgs1PHY5xGjfYis8MMMD6bHdccM9iXv5M0Yv6 zFczGTdXYqafxvCYZc4cYEsZeTpGI+/3uLGg0p4k1n9SWy4diMIReCq2bDr4YLoUDvjm QZjZNZ9WoqPQqCjjVSL+3dZb/jRs6rjGl8MexQjtgedHj7v+qXaTBdh9BtQ0HOcZHToa Qs6FXUHi4r/RYfuVhGjYcX17DCRsjZgWhnOzBGyI8AFQovCWl6mqteKsFP8+kxYlkHd1 M+B/4wwtA9jUQjw5UK2OC2LNw/tCW6/lWM4y9ztBOJwlUDrhC0CxOLfVpC7XBseiKjpM t7Qw== 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb16-20020a170907785000b008e6279ea507si29221338ejc.321.2023.03.27.20.22.24; Mon, 27 Mar 2023 20:22:49 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232374AbjC1DOB (ORCPT + 99 others); Mon, 27 Mar 2023 23:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjC1DOA (ORCPT ); Mon, 27 Mar 2023 23:14:00 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2078D1A6; Mon, 27 Mar 2023 20:13:57 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VerH6ke_1679973233; Received: from 30.221.134.40(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VerH6ke_1679973233) by smtp.aliyun-inc.com; Tue, 28 Mar 2023 11:13:55 +0800 Message-ID: Date: Tue, 28 Mar 2023 11:13:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH V4 00/17] io_uring/ublk: add IORING_OP_FUSED_CMD To: Ming Lei , Dan Williams Cc: Jens Axboe , io-uring@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi , ZiyangZhang , Xiaoguang Wang , Bernd Schubert , Pavel Begunkov , Stefan Hajnoczi References: <20230324135808.855245-1-ming.lei@redhat.com> <642236912a229_29cc2942c@dwillia2-xfh.jf.intel.com.notmuch> From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 2023/3/28 09:16, Ming Lei wrote: > Hi Dan, > > On Mon, Mar 27, 2023 at 05:36:33PM -0700, Dan Williams wrote: >> Ming Lei wrote: >>> Hello Jens, >>> >>> Add IORING_OP_FUSED_CMD, it is one special URING_CMD, which has to >>> be SQE128. The 1st SQE(master) is one 64byte URING_CMD, and the 2nd >>> 64byte SQE(slave) is another normal 64byte OP. For any OP which needs >>> to support slave OP, io_issue_defs[op].fused_slave needs to be set as 1, >>> and its ->issue() can retrieve/import buffer from master request's >>> fused_cmd_kbuf. The slave OP is actually submitted from kernel, part of >>> this idea is from Xiaoguang's ublk ebpf patchset, but this patchset >>> submits slave OP just like normal OP issued from userspace, that said, >>> SQE order is kept, and batching handling is done too. >> >> Hi Ming, >> >> io_uring and ublk are starting to be more on my radar these days. I >> wanted to take a look at this series, but could not get past the >> distracting "master"/"slave" terminology in this lead-in paragraph let >> alone start looking at patches. >> >> Frankly, the description sounds more like "head"/"tail", or even >> "fuse0"/"fuse1" because, for example, who is to say you might not have > > The term "master/slave" is from patches. > > The master command not only provides buffer for slave request, but also requires > slave request for serving master command, and master command is always completed > after all slave request are done. > > That is why it is named as master/slave. Actually Jens raised the similar concern > and I hate the name too, but it is always hard to figure out perfect name, or > any other name for reflecting the relation? (head/tail, fuse0/1 can't > do that, IMO) > >> larger fused ops in the future and need terminology to address >> "fuse{0,1,2,3}"? > > Yeah, definitely, the interface can be extended in future to support > multiple "slave" requests. I guess master/slave (especially now) have bad meaning to English-language guys so it's better to avoid it. Thanks, Gao Xiang > > Thanks, > Ming