Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5224259iob; Mon, 9 May 2022 11:19:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD2q8B3IxByI2SZZ6WGA48PGtHQHOfLdwFbGaQ8zi3IXP7X7diMQvkivX+BXfIuWOXFHmT X-Received: by 2002:a0c:d80e:0:b0:456:31a1:fa52 with SMTP id h14-20020a0cd80e000000b0045631a1fa52mr14448117qvj.109.1652120356000; Mon, 09 May 2022 11:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652120355; cv=none; d=google.com; s=arc-20160816; b=NCOLC57YKmhtKleREumYDF7TshlWtJ2IlUVdKleoStUNbeMFi8Tg378Z5Umio9qv7k f3g+QfkX6u/A+QsbghGFHv/FigJoWd3+SoVG/A8bXyH7PMKHPh81bLHcRMx6HMfDCyQU tcXj+93+cAslZh826aFUzOFYrwbXYpb9WvFJQ7m+ccVym3WHzmNnwasCaHaK4f4dDtuD oBZDS+jgPuVGYC+ykYUW/hKfn1LndimA+dfMPKUTF+mlD4stQmChYZLSFJRCxJMY5ONs cPC9yGZ+uNeUUyUPSBSEKZI2d2qCy16FRgu6zGUAgRU/wFX977cahmXgWM01UUc6V+C7 /aQA== 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:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nbP4UxLudGGNXmlugF8xlwUjdH1zs5seOC29q5oKmlM=; b=z9TujbApgbHcfHwEj6n2HAoeWNaLX86uQcF3e+nt5nsmOIri4O6GRRuQGp5QC8o3pp bWLPgp15yB2tfYFUEXYk5ONHiZ8ZoEd3nGZwRitiZNRHe+LLfhHyM+Pr9WzMhaf/VaVP plgaKohH5WEr+bJUAdQLPt2y7q0hxznTsFxe7w6l/ImYZs4qgRatoGwmojp/9YrqYK+w Ua1/P/y1U2WL8RYATdRS2vtpCGxbiPzdso7TjWmUnTIeXCzfr7VDmv6e589ePnYXlRMv y/zDPfuXu2W0m79lLgeJ5qc9ZE7A7HsFLiQTpJRCZAfFtJk/3l8vu72rJHhkEUrr44PI zVlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=PybJiJI+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t4-20020a0ce584000000b00446693a2346si7365951qvm.270.2022.05.09.11.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 11:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=PybJiJI+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7CE948565D; Mon, 9 May 2022 11:13:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240053AbiEISRl (ORCPT + 99 others); Mon, 9 May 2022 14:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240062AbiEISRi (ORCPT ); Mon, 9 May 2022 14:17:38 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36ECA7EA09 for ; Mon, 9 May 2022 11:13:43 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id e15so16241653iob.3 for ; Mon, 09 May 2022 11:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=nbP4UxLudGGNXmlugF8xlwUjdH1zs5seOC29q5oKmlM=; b=PybJiJI+d6ApKBe4iSRLaK6vywNjH97JUmHy6z+pDyFUQ52ijVw8IzHkt19i9PfCex /CiILaWaKuwS1WOkuZwboqWsSpJtluUcdtf+e3vK32dHeUvErjB6yip3QLAHx4vpT1TC ZIVSlvVQoqPXFMA3VgPK0AxnURv2ZcP7jRI9eGIQ/pRztwh/vkHfZSQlsPWN6fLN5E8m J3NvcRuxxd+jsPb5WiKXDoRZ6wgXDWwevVTWPfJoXK1xD4NzXej2tv9QO2/JjUqz5P5F jKcXf7Dy3dHKtd6cNYyqVBx9obL5nsM1In1c0CvffbEZk7y5sZ5R/kPXPim2HCsT8zx+ jADQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=nbP4UxLudGGNXmlugF8xlwUjdH1zs5seOC29q5oKmlM=; b=QRSU6VMDv1zrt/qojgF22gCoihKuDyuzMkWYPywdtG/VANyOIxeRZir7bKJe9qVAI1 hFRfvLtU8lTpLyFP3aNhD1vEZSMn+irL0v+qQZcSljV/xl+jfscr7+LxN4RcjzdTMmCy prQHne+azS0FxTx9Z6h/cbyPrDmCEjjsoVYwG/nsIpXxst9AfmCPIZjTD2oGfoWrSMq1 8l7N6frXyvdbHFDYh/MDU6PAaaPV4Wnu21Ti5fFs8Vt+UtyjVhLhR3MUEB4qZUtaM6rj Vx0xyLCdyuGknHv2dYHXuFJdBkQD6ZxMaougzDIaHVih7VJj5pwz1/OmEyoKl4bQu2eY ZzIw== X-Gm-Message-State: AOAM5318QG9X/CG+qGrmyKM7RAEw8L4hNd0FBBvF3r7tyJM0+UmAz6qr TdyNjj5T3xKrFnkT+A9T/xxmgQ== X-Received: by 2002:a05:6602:2e82:b0:65a:a33e:6d3f with SMTP id m2-20020a0566022e8200b0065aa33e6d3fmr7341288iow.44.1652120022527; Mon, 09 May 2022 11:13:42 -0700 (PDT) Received: from [192.168.1.172] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id v4-20020a92ab04000000b002cfa97470c1sm980351ilh.21.2022.05.09.11.13.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 May 2022 11:13:42 -0700 (PDT) Message-ID: <14b5e588-3df8-fbdc-d4df-ae9187c18812@kernel.dk> Date: Mon, 9 May 2022 12:13:41 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [RFC PATCH] ubd: add io_uring based userspace block driver Content-Language: en-US To: Gabriel Krisman Bertazi , Randy Dunlap Cc: Ming Lei , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, ZiyangZhang , Xiaoguang Wang References: <20220509092312.254354-1-ming.lei@redhat.com> <8e3ecd00-1c73-7481-fec2-158528b2798f@infradead.org> <87bkw6lgoo.fsf@collabora.com> From: Jens Axboe In-Reply-To: <87bkw6lgoo.fsf@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_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 5/9/22 12:11 PM, Gabriel Krisman Bertazi wrote: > Randy Dunlap writes: > >> On 5/9/22 02:23, Ming Lei wrote: >>> diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig >>> index fdb81f2794cd..3893ccd82e8a 100644 >>> --- a/drivers/block/Kconfig >>> +++ b/drivers/block/Kconfig >>> @@ -408,6 +408,13 @@ config BLK_DEV_RBD >>> >>> If unsure, say N. >>> >>> +config BLK_DEV_USER_BLK_DRV >>> + bool "Userspace block driver" >>> + select IO_URING >>> + default y >> >> Any "default y" driver is highly questionable and needs to be justified. >> >> Also: why is it bool instead of tristate? > > I think it's only bool because it depends on task_work_add, which is > not exported to modules. It is something to be fixed for sure, can > that function just be exported? There might (rightfully) be resistance to doing that, as it's one of this interfaces that's a bit tricky to use correctly and still have it be efficient and not introduce dependency loops... But this is very much RFC and in progress stuff, so I don't really think we need to pay much attention to that at this point. -- Jens Axboe