mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nbd: automatically load module on genl access
@ 2022-11-10  5:24 Thomas Weißschuh
  2023-01-11 16:40 ` Thomas Weißschuh
  2023-04-27  6:04 ` Thomas Weißschuh
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2022-11-10  5:24 UTC (permalink / raw)
  To: Josef Bacik, Jens Axboe, linux-block, nbd
  Cc: Thomas Weißschuh, linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nbd: automatically load module on genl access
  2022-11-10  5:24 [PATCH] nbd: automatically load module on genl access Thomas Weißschuh
@ 2023-01-11 16:40 ` Thomas Weißschuh
  2023-04-27  6:04 ` Thomas Weißschuh
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2023-01-11 16:40 UTC (permalink / raw)
  To: Josef Bacik, Jens Axboe, linux-block, nbd, linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nbd: automatically load module on genl access
  2022-11-10  5:24 [PATCH] nbd: automatically load module on genl access Thomas Weißschuh
  2023-01-11 16:40 ` Thomas Weißschuh
@ 2023-04-27  6:04 ` Thomas Weißschuh
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2023-04-27  6:04 UTC (permalink / raw)
  To: Josef Bacik, Jens Axboe, linux-block, nbd; +Cc: linux-kernel

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
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-27  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10  5:24 [PATCH] nbd: automatically load module on genl access Thomas Weißschuh
2023-01-11 16:40 ` Thomas Weißschuh
2023-04-27  6:04 ` Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®