Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp201991rwr; Wed, 26 Apr 2023 23:24:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4J7WskzuuPK5gbXT58GE+9XrKKsGywkpf/84rBXyMDnvQ4uOkXMFQhuF5nIdUc5QLIbgzy X-Received: by 2002:a05:6a00:4009:b0:63b:4978:a50a with SMTP id by9-20020a056a00400900b0063b4978a50amr878962pfb.1.1682576686068; Wed, 26 Apr 2023 23:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682576686; cv=none; d=google.com; s=arc-20160816; b=GFwUyuoNWFvZC6nL/jPEuGMJ+4SV7aRvX3rOShVTZy6QL+aMBYTrLl8FfathOQOxhW epHNQZ/IbCy1xCHF0IzJliu4ZAs//iS5aAncDeTB9kr17Wa7xN4LqU+afaqE6VZauX8y TGpzwLPweZHIxqNyIn5bS5ebvGWik274lZsJoEfyZPa53IJ/fb6tAvXen5gFgJNYmDmI wBCVaQv4laqOI4ET5VhTwuaIiLrrCtIy1JtCZ0P03ltvRjcekQpNLaL6NhVidjLOXYyz PKxH17LjpTxim+4T+gtdykRaPIAckxzvsMp8W0g4dmCqOxtCUSYwCBK9a5mjqq2LouRc Opcw== 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:dkim-signature:date; bh=mcCvPlmNAUXvXufxmy5XF1EYwR7MYCgm4mg+oYkchVc=; b=LUZb3HEXhutnHuTiOa9L2hW59mtN/0I3GRt54palvff26AyIJ/zbmrTtWRJD9zLhmZ N4LoQ1Hg4h+EgYkKsZFG2E7KQkCu+AGJdxqldEXA5ZCBARsc5m3celd0gjqtE4i3Gpzw hyPqmDmT0Mkj2hd0dPje4735k9HY7v5AljibrCcVQiMHv01sU1fMUWMNTu1b2XvaYMs5 ZV+IP6JvQ4llbscFkvJViHsde5f7l0S20buNdykWhkX1Gip41LyeA1Jyxq78i5daPeq0 eDkdiVfowbE3e2mxAdC0YixfdM9/WC76HujEbSSeZx+iiC0tN1ZUC6TrKp8PTJPJcuvp lkdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=txX6NVbX; 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 n16-20020aa79850000000b0063d23db6941si18082842pfq.111.2023.04.26.23.24.34; Wed, 26 Apr 2023 23:24:46 -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=@weissschuh.net header.s=mail header.b=txX6NVbX; 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 S242838AbjD0GEi (ORCPT + 99 others); Thu, 27 Apr 2023 02:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236396AbjD0GEh (ORCPT ); Thu, 27 Apr 2023 02:04:37 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DCD82718; Wed, 26 Apr 2023 23:04:36 -0700 (PDT) Date: Thu, 27 Apr 2023 08:04:32 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1682575474; bh=cyecpHnIeBWNjwg8xQ+JBS0N+v6dd3dFUm88xA+Uels=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=txX6NVbXb1wjkUb6eKuiG5cTqi+P8kEbA+NQRE/yk+lsmkCTBKMEjaq0PdLiFd8d1 YHz8dWYeKyT6jiarWAwjsymdjI/UoCvie5kG7+Yu+YwnTp4pbgHowqGPx60T4NIhrk pXAnbqRrp+wIue2easFng2qDBnwVzWRoUXbgmnos= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Josef Bacik , Jens Axboe , linux-block@vger.kernel.org, nbd@other.debian.org Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] nbd: automatically load module on genl access Message-ID: References: <20221110052438.2188-1-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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, T_SCC_BODY_TEXT_LINE 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 Josef, could you take a look at this? ... ping Thanks, Thomas On 2022-11-10 06:24:38+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 >