Message ID | 20221110052438.2188-1-linux@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp738880wru; Wed, 9 Nov 2022 21:32:58 -0800 (PST) X-Google-Smtp-Source: AMsMyM4ctVcM4PV9SYk6wA/YEKuNK/PPYB2olTggDTpg+VhE+GRviKs035GpQtuF3N9LBLz/eJNw X-Received: by 2002:a05:6a00:1ac6:b0:56d:919b:f4a1 with SMTP id f6-20020a056a001ac600b0056d919bf4a1mr52342756pfv.50.1668058377978; Wed, 09 Nov 2022 21:32:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668058377; cv=none; d=google.com; s=arc-20160816; b=YU4PdhDPbOcrJhnoIGrWvwA8LxnOkrdmkKsABxmbs2Rk5np5Ld500CDfR4oOLNH/eH 3Fre/DsKHx5yprbCPTkbYXRpTAyjYlfuVLjmDsjSOcCKZMdny7oRCxx39MU3K8vQ8MkQ YaCKVPXBJ699V8lGClpLxOwYRUS3HwqYomT//G+hf+EPHG98Gs4asziYTLt6WvEV2pbN DvfMRzTWLhMdqEWkkOOpiepqV0jj2Yp6vfIRDUO9MurCpRne5cCMXzqaRSX/sPwDJ594 8JrHp6MqfYHJ+GWnayExGOOuRqU0Mg008aHUmPa90cjJ7P8FV7T0vft3B/F5nsyj1zhT QVKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=59cdqxMXa2aUcwvp2Q9FGCHTQZ/9R+4KKABcwzZW9s4=; b=yjlaPprqUOCcmStlgOUG6f9Yi1OEqdyNhuLaWav5WaJyu8nc42iQegVY8/T3A/S+dx JZHm1An+rKPxVsNu07FoZPgEykZZGsoLJMRZjDUE5ayWX5VFAOoa0CvF1xy8dIUhWq4v 0ZFagpCsQjMSrO8HPt5Qkt/gu6h+0p+AoOvtHS4W1mJ37mK4KLXiPSeQqqraSCmvrMjE BijwYMcmQyJ22E++l/V4+vIMotfaviyVusn9GUjMGwDXn71i98I9YO5jpkzdKxE82Jud xJ44wqAZO6HGZg3tR73QiOk6AUS37XU9i4rM7oZmHKSp3bIozlmlGGsMAIf+EBwGR2Vb hzgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=EeFpj9ul; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a655a09000000b0046fcec7f27asi18641598pgs.506.2022.11.09.21.32.26; Wed, 09 Nov 2022 21:32:57 -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=EeFpj9ul; 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 S232220AbiKJFY6 (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Thu, 10 Nov 2022 00:24:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiKJFY5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Nov 2022 00:24:57 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE06275FC; Wed, 9 Nov 2022 21:24:55 -0800 (PST) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1668057892; bh=SIhRYzH//kwaIhdzxST5+Pe24phe7wR7IiS7fLDVIpw=; h=From:To:Cc:Subject:Date:From; b=EeFpj9ulPKz3ANUzNLdzFGp0I0wnfEyPM0MMNAaFFz/+nWhods7DWc9sKzj8tPZCI 2+j4VswE9Abb621YrWji9yDudR+qwgbNRDdM/ZL2k8Hg+cdrUZnz15yODHCmkbtHQs AH3ueKjuGAVWaMaexKLAnNhPeprXY9QeN9yWLz4I= To: Josef Bacik <josef@toxicpanda.com>, Jens Axboe <axboe@kernel.dk>, linux-block@vger.kernel.org, nbd@other.debian.org Cc: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>, linux-kernel@vger.kernel.org Subject: [PATCH] nbd: automatically load module on genl access Date: Thu, 10 Nov 2022 06:24:38 +0100 Message-Id: <20221110052438.2188-1-linux@weissschuh.net> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=ed25519-sha256; t=1668057875; l=727; i=linux@weissschuh.net; s=20211113; h=from:subject; bh=SIhRYzH//kwaIhdzxST5+Pe24phe7wR7IiS7fLDVIpw=; b=TamtngLw5uGYaOiLQpg88P6iUzWfM1ZrfLyQNTSb9ffqCXcn6aghwLYi7eM0GXA0YO6yiR2sr1Hs UqDN2rPwBKx/saBBKi9xXSwr5k8/LNpPVAGDlsq5M6JV4imnTuxh X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=9LP6KM4vD/8CwHW7nouRBhWLyQLcK1MkP6aTZbzUlj4= Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749085981816459241?= X-GMAIL-MSGID: =?utf-8?q?1749085981816459241?= |
Series |
nbd: automatically load module on genl access
|
|
Commit Message
Thomas Weißschuh
Nov. 10, 2022, 5:24 a.m. UTC
Instead of forcing the user to manually load the module do it
automatically.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
drivers/block/nbd.c | 1 +
1 file changed, 1 insertion(+)
base-commit: f67dd6ce0723ad013395f20a3f79d8a437d3f455
Comments
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 <linux@weissschuh.net> > --- > 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
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 <linux@weissschuh.net> > --- > 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 >
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) {