Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5124451iob; Mon, 9 May 2022 09:06:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMPIKjpRUcT0n+KMoKvpKE5BiXsG3/Wl2LX5FLUtlhlGKenq8MYxmZfrQ5w1iZJJ2XJHQM X-Received: by 2002:a05:6870:7090:b0:e6:49ed:4a9b with SMTP id v16-20020a056870709000b000e649ed4a9bmr7392827oae.177.1652112365365; Mon, 09 May 2022 09:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652112365; cv=none; d=google.com; s=arc-20160816; b=X9iko5stJiKJXuy2DtRtlXKgwn1Eu4PK05vmBVGgXfX/CzP9OvGmXfV9jKn35cCL20 RWb1XQIK+HARkPM1d8lDlKQHD4NbMGU0fKkDTXh5I+kAg0X9n+x8G+KTvVImul/XJ2Eg KFEl8QgPblj7OJe8ueA9cGNCiOs/wSevz29EWiLYTzGa9qSsiZftnAJQjtui1arzWpeF 6Llv+yTf5HlJkywq6Nvh2oKwEH2DVWWBhGZtee5+YTtLGVhtifx+p0CJhIZteot9q8C8 ZDV8n4LaLskdVY13SVftG5NCn46bi0u0vsEwxhcUeoFowLGI8fBw5u3QfdzQMKOwY3DB ePBA== 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=K4xQBj4Av+1aVjNhecQZcLi4H026zPkK8lu/o3+s21g=; b=p7Zy+xqy6DIei2Yobd8hZSL+vMfe9pHWZ7MN1rOKQvjERkE9V9ItiVxgkAaOslb4j/ MejQYhjKnHAWnocss0SFN9h9+ibF4v/iEuvIXWCpIhFwTtM3VPs+j+9yYRkCNF54Xaaw swHLAMiF+MaC0w/zT27qgLAB+qD5bqDS3lgW1Q1NkOV1TsXAJeN/p0ARz9ihKrAPqZ04 z3h6fbbB9fKPi1dnhXh0KXmn3MuPMbGZc+u/+O5irfHDa9/9o99R1pZgBwevGiOI31Hm Zcu5oHUfPd2tgAHzalbG0RGRAy7zJQ+kErvHPoW3qrQqbURdC+v3VxtotlPofRBZ8zUa 5k4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=rOjuL7YP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id be13-20020a056808218d00b00326cc364a82si3156342oib.305.2022.05.09.09.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 09:06:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=rOjuL7YP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 847511C06FC; Mon, 9 May 2022 09:01:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238765AbiEIQEw (ORCPT + 99 others); Mon, 9 May 2022 12:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238782AbiEIQEs (ORCPT ); Mon, 9 May 2022 12:04:48 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93DCB4348C; Mon, 9 May 2022 09:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=K4xQBj4Av+1aVjNhecQZcLi4H026zPkK8lu/o3+s21g=; b=rOjuL7YPniMy57b1u6dI1Hc5gO rKc00pRpI9pgmRtNEEcVp95ObH3NAvHKO0BxqgakABdsxT9w+vcSkLYMwRjeF2Rt45LH5W1qKAuIZ ee+AO/YgQEUbFIHFmMFnIqyY9ChcwENCGmSHKicuGx7ma8Eo8+/LYP6uojVxFJ2e0tYnpVbdQnl0O dSaNJ0/D4luEL4aN9muESKMxTtgGFq9TtirNLRMve3iMs5/T6IrrvEKXu4E4UHYhdpG9273XhLFVO V3RsnWiOJ/sGCXTDhAGHTasPCLV5P0mqttJVyO3vg1+8boxC98anD2srszHHJ8zSGlIWP+W+fdPuq 9i0DKLEQ==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1no5oR-00CbQM-Sb; Mon, 09 May 2022 16:00:44 +0000 Message-ID: <8e3ecd00-1c73-7481-fec2-158528b2798f@infradead.org> Date: Mon, 9 May 2022 09:00:37 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [RFC PATCH] ubd: add io_uring based userspace block driver Content-Language: en-US To: Ming Lei , Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, Gabriel Krisman Bertazi , ZiyangZhang , Xiaoguang Wang References: <20220509092312.254354-1-ming.lei@redhat.com> From: Randy Dunlap In-Reply-To: <20220509092312.254354-1-ming.lei@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 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? > + help > + io uring based userspace block driver. -- ~Randy