Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3695287rwl; Mon, 27 Mar 2023 18:43:17 -0700 (PDT) X-Google-Smtp-Source: AK7set9EYywem5D1xMMvHfx3qlgNV8V1Io+72HEHYBbHw/KcQT9nxBksSA55OFPSe0BuaResYjgi X-Received: by 2002:a05:6a20:b806:b0:cc:f7ad:eb79 with SMTP id fi6-20020a056a20b80600b000ccf7adeb79mr11888473pzb.52.1679967797160; Mon, 27 Mar 2023 18:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679967797; cv=none; d=google.com; s=arc-20160816; b=RnwmD9tJkBprOhzWSxDRoNtg3cqHiZfuf13FIWcUHOq3QPEF+4rGhMCtmSrLXsPPB9 n8O/8utPWkQ7kVVYTwk/tIU712mEIg8Bbh3zhBPEkR7yv16T29S7eABlBcfwm66vzwBx 0ukW0NcoiicW+K2KyMqJpzKikgy6hb/5MY9ctaQaYOjGwZBsMlF1x7XcLapGkVb/Fklc EfptpSmSjqjt1KeSEvZFV2iUcdRb1k9rWNbc4wFEQIefQ1xGi5PExQ8swGCo+9brm0T6 hi7JAAmPIOxDwIYU6CFXjrsZJ93AJH3ifa1ejLD6gt1hBYuXOPSYi7VUGdGJVQRKyjHE 78YQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Z/Lu4hvYujwOnJPvUPGyeNPV9KRZBeHZntNLTuypEck=; b=CaVyE0tcFPk67U7Afi8STqSlvjXGrSg6oGyLmvaF4RM1nXUynAqJdvKELLFQ9QRufV VMJ1qYy+IyZPTPNsZgKG7tPdMZ21y6W6JGzmOVksJX/oFG7aA1YMoOtAwF8dN2ZZyvxq S5ln78x1X/OSQBESGGHlotwLHSZOFTmqxLrMoXYGg3XRANLUrh2nrIWgQPPqqIxZPKce RthU2huxsiBVUc4qAZ8T6L5SvERzNWEFEA0MUrWnIr9I1eZUWWtI0xdaGJfggQ3b3vXd tAUP8qKKe81piWNSCHSh/386qZEiwhLCvHf1HqF8YEQRJgLdLYATj2N2pxDAqqJlG9Bh wRxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dhNLpkXB; 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 202-20020a6301d3000000b0050bf890f8b9si27412302pgb.613.2023.03.27.18.43.05; Mon, 27 Mar 2023 18:43:17 -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=dhNLpkXB; 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 S232144AbjC1BgL (ORCPT + 99 others); Mon, 27 Mar 2023 21:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjC1BgI (ORCPT ); Mon, 27 Mar 2023 21:36:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81BFE1BCB for ; Mon, 27 Mar 2023 18:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679967319; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z/Lu4hvYujwOnJPvUPGyeNPV9KRZBeHZntNLTuypEck=; b=dhNLpkXBt/DcegCFXJyUnv7Qaoctcn878uUUUN/Tphm/vhV/Lp3V8b57pkKs0gxwgh6J61 R+vSJjCr5LwTRAADrAqkczhjuyz64XymiaFCrnNk4PdqnkYqno2oKXNcbE2FvnEAy1xxE4 Si83NI769Il5Nil6APe3Dh4Ptl6QYOc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-516-hxmlryEPOm6Xasr0nnst2A-1; Mon, 27 Mar 2023 21:35:15 -0400 X-MC-Unique: hxmlryEPOm6Xasr0nnst2A-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DAEBE1C05138; Tue, 28 Mar 2023 01:35:14 +0000 (UTC) Received: from ovpn-8-20.pek2.redhat.com (ovpn-8-20.pek2.redhat.com [10.72.8.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 12AA7492C3E; Tue, 28 Mar 2023 01:35:06 +0000 (UTC) Date: Tue, 28 Mar 2023 09:35:01 +0800 From: Ming Lei To: Jens Axboe Cc: Dan Williams , 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 , ming.lei@redhat.com Subject: Re: [PATCH V4 00/17] io_uring/ublk: add IORING_OP_FUSED_CMD Message-ID: References: <20230324135808.855245-1-ming.lei@redhat.com> <642236912a229_29cc2942c@dwillia2-xfh.jf.intel.com.notmuch> <11651593-79d3-b21a-6441-63e1de5b39aa@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <11651593-79d3-b21a-6441-63e1de5b39aa@kernel.dk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-0.2 required=5.0 tests=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 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 Mon, Mar 27, 2023 at 07:29:36PM -0600, Jens Axboe wrote: > On 3/27/23 7:16 PM, 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) > > Indeed. What about primary/secondary? And it'd be quite possible to have > multiple secondaries too. OK, I will take primary/secondary in V5 if no better name is suggested. Thanks, Ming