Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9722426rwl; Wed, 11 Jan 2023 09:08:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXu21iK18Zm9bqXYhASoprpIBAA4e1B5cIcIqJmIrNG/wZU99iJpclH+qerE0t7vq0dvlQK9 X-Received: by 2002:a50:ec85:0:b0:492:8c77:7da9 with SMTP id e5-20020a50ec85000000b004928c777da9mr21140002edr.9.1673456883638; Wed, 11 Jan 2023 09:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673456883; cv=none; d=google.com; s=arc-20160816; b=U3WQkQTxagCNcfpClCSycGzzIAZpPQr6VoMZqrTVXKPBA9OIxQeItZJj/2Rvo663LH hS2r89hUYkekxnoGZZN58F3+mQEljJk1vmVfBOGvMqag7i5ult4JjP93vHMGoGP/tpYt /5APMwOCmJHZecT0gV9xkc4ESJeJjxkCuIH1YPmRE4WYBcMaF3+jz+lF23XnoQLGR1Nh ZjTDjm2vs0R5a8vlALWyAwN0Pp9Q1L9yV0UB0+Lw2xDHt/o+07BOA3+eftL9CVfgAvWm 3vxw/2zIKmfla76cb4/gnNrR6JIYh1zGdyOHP0RtvAaKJISBGq/53IWUf8ppi7SHXXfX 4pGg== 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:to :from:dkim-signature:date; bh=qOdBxO2OLNc3lCz0Jfhv+d0MBsAlFWvYgOm1+iPDs6Q=; b=rM+KajWMLE3vAx8vrIgYzNXTgPy80GT9549jMld8THYGAN7pEduD5GKB/ZLdoce/6D yTRKlQI+IQtI6ByneRNL3e3odEuNuRSM+Tif6iRBB9ENzReGCYgLJM7Jtzv9AM8ilq1Z D6aYBgxL8h/ZrVc2ckfsG4UiBw/1FCEXyfPkPbHHPo7AsRNrnkZXknpqYAGzIxIA2+TN k6si14sgKixwfDMpfkBAqkrvvCKL04Db86svlPZFYBXf5dZtNMspJPADcqixEciWAh1C B46tP7JVGHWsHi4RkmWvqg64F/3fL9Z4tXMR/+hT714ACAdsRtbDhqXH8eQ824fx+ttO utxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=RCEp3551; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae2-20020a17090725c200b007c07d0dbe85si15354023ejc.463.2023.01.11.09.07.42; Wed, 11 Jan 2023 09:08:03 -0800 (PST) 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=fail header.i=@weissschuh.net header.s=mail header.b=RCEp3551; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231848AbjAKQmL (ORCPT + 51 others); Wed, 11 Jan 2023 11:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238088AbjAKQll (ORCPT ); Wed, 11 Jan 2023 11:41:41 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AC121C123; Wed, 11 Jan 2023 08:40:32 -0800 (PST) Date: Wed, 11 Jan 2023 16:40:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1673455230; bh=1CxCJtXN8jkj7d+XLUeTWv6kMDXKx4rzhz2v14YhVsY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=RCEp35517cFDBBOE5Zgf53o0SXJ0BZvRVtjWgqTUaQLRipyhPS6dxBQppB26A/vBI 77CgE5iEZf4TwJUAEsqeuISJpH/8kvU58kVeF3IMfZrBn8PiBPCBY4ODi7nPOIC8+0 jx+ZFbtuRNSwW54W3fuWFKVyWzH/MRBmtRvBc5gw= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Josef Bacik , Jens Axboe , linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nbd: automatically load module on genl access Message-ID: <20230111164027.7oqg6zmkcpfitb3l@t-8ch.de> References: <20221110052438.2188-1-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221110052438.2188-1-linux@weissschuh.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi, On Thu, Nov 10, 2022 at 06:24:38AM +0100, Thomas Wei?schuh wrote: > Instead of forcing the user to manually load the module do it > automatically. > > Signed-off-by: Thomas Wei?schuh > --- > drivers/block/nbd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c > index 5cffd96ef2d7..1c38a7ea9531 100644 > --- a/drivers/block/nbd.c > +++ b/drivers/block/nbd.c > @@ -2328,6 +2328,7 @@ static struct genl_family nbd_genl_family __ro_after_init = { > .mcgrps = nbd_mcast_grps, > .n_mcgrps = ARRAY_SIZE(nbd_mcast_grps), > }; > +MODULE_ALIAS_GENL_FAMILY(NBD_GENL_FAMILY_NAME); > > static int populate_nbd_status(struct nbd_device *nbd, struct sk_buff *reply) > { > > base-commit: f67dd6ce0723ad013395f20a3f79d8a437d3f455 > -- > 2.38.1 > Any feedback on the patch? Thanks, Thomas