Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5224204iob; Mon, 9 May 2022 11:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsgAsxS8Lo+60mvu5A+c0nUNGssKDq03uD9ZgyXRfzu2GJN58B/MbSt8o4KndusGK8VPXL X-Received: by 2002:a17:90a:bf0a:b0:1db:d98d:7ce9 with SMTP id c10-20020a17090abf0a00b001dbd98d7ce9mr19084759pjs.155.1652120350525; Mon, 09 May 2022 11:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652120350; cv=none; d=google.com; s=arc-20160816; b=B21ft9DlZkkNIS394+kBfg/ev5lCNzigmNVnFY+NyVDnW0uylD6i4eQwJeb3ZGGPGT b4zAeWdiUIsLeW9qBNjK9eDhej4cD9lcCuJp3wLsuerXYal4cW7hFORmEP4ecDaccJaX SvUhyydecE9/lDDbh40fqcCfC02hhCSzd2IAADuBDhYIs/x1Oc+gkG/EBWMpmkN+BaDV 1liyk4CC3rOor3sD6d35QVUFGzRsu4cJi6J+ZqNNmx8JjpcTNcrOOwBWuFyskb3Fezjh HyboBfh/MDoYfKiuqYlsiKY3yq8HOKyDygOAZ+2+XuGvZXWDntAKgUY8VS1CPQ9K6ZKv pSUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from:dkim-signature; bh=gnBFhsxS1SSD1J+e3VpcgGiNpcoN92i33Lbprc+wyNY=; b=xIJFbDLJ+E3g1ZPrQBXRvU3Aa/7iKJQDvr4CepZBSanqwllP3ySjHMPZuh5pfJOLns TXHs0m00RST1UbQCCX8ov6qvjYwLTFqoevOoKc/pFd9LOOmPCjDd12QcfpBRDcVp4ktP /5bod4LL5zjNkTkAAsB4mN/dR1043xxb2ydvOLGg77NlbBMVzsw5uvK6Jbr4Voj+ztnE bn1wAspVe7y6tFzylZiXfYEQEMrQn3VkCsEPyvFjVuxxJ8HReGPJi66QK/zdQcQ0c3zX 5q0zO019CMs0noMEdD4B7QuTouHqCvvnnCvcRFxz7Hknz4FHwblluiCpsGkI8MMKY93/ e8jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HyIWaVM8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l194-20020a633ecb000000b003aa57185726si15706998pga.681.2022.05.09.11.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 11:19:10 -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=@collabora.com header.s=mail header.b=HyIWaVM8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6791D248F6; Mon, 9 May 2022 11:11:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240064AbiEISPb (ORCPT + 99 others); Mon, 9 May 2022 14:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240034AbiEISP3 (ORCPT ); Mon, 9 May 2022 14:15:29 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34A661DA74; Mon, 9 May 2022 11:11:34 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 25CCB1F43FBD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652119882; bh=MbPPprIzKvxmhduX4Hn0tkmwmTra/9U7Mk0pwr6WmI8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HyIWaVM8jvUSedn2yuZZVY27tqvcE3NVSCaa1N2QDtZFqmI9ptONPMvD3kbpJ/TP6 6kv/sRrcWZcdgOPl7YeYdbQ0XZTAyfXswqhh1QF1tIbhfSvdw8jCB1hiQqLr301gf2 mP280UWL5V24h/FLNb3ahwsTE4OfxVwAN28qOySm18x3IMOqGr2IWDKUR9h+LsDPw0 pK6AgaTe4JzUxf4Chu90loNUrkWjeWEquvsurdO7wdBHCiOQe5nnH02ylm0BFyXygQ 7qQVjoWK7znnY8z3Upwj8Pfl30U9voKmuEEm/OsR5+feSGFIyyDT5qeDjl7SAoHzHP vieHl9nu9681w== From: Gabriel Krisman Bertazi To: Randy Dunlap Cc: Ming Lei , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, ZiyangZhang , Xiaoguang Wang Subject: Re: [RFC PATCH] ubd: add io_uring based userspace block driver Organization: Collabora References: <20220509092312.254354-1-ming.lei@redhat.com> <8e3ecd00-1c73-7481-fec2-158528b2798f@infradead.org> Date: Mon, 09 May 2022 14:11:19 -0400 In-Reply-To: <8e3ecd00-1c73-7481-fec2-158528b2798f@infradead.org> (Randy Dunlap's message of "Mon, 9 May 2022 09:00:37 -0700") Message-ID: <87bkw6lgoo.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 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? -- Gabriel Krisman Bertazi