diff options
author | Eric Dumazet <edumazet@google.com> | 2024-01-22 12:25:59 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-23 15:13:54 +0100 |
commit | 114b4bb1cc19239b272d52ebbe156053483fe2f8 (patch) | |
tree | c8e96835e6c02e266d998b39771f9cb7284f2d1d /net/smc | |
parent | inet_diag: allow concurrent operations (diff) | |
download | linux-114b4bb1cc19239b272d52ebbe156053483fe2f8.tar.xz linux-114b4bb1cc19239b272d52ebbe156053483fe2f8.zip |
sock_diag: add module pointer to "struct sock_diag_handler"
Following patch is going to use RCU instead of
sock_diag_table_mutex acquisition.
This patch is a preparation, no change of behavior yet.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/smc')
-rw-r--r-- | net/smc/smc_diag.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_diag.c b/net/smc/smc_diag.c index 52f7c4f1e767..32bad267fa3e 100644 --- a/net/smc/smc_diag.c +++ b/net/smc/smc_diag.c @@ -255,6 +255,7 @@ static int smc_diag_handler_dump(struct sk_buff *skb, struct nlmsghdr *h) } static const struct sock_diag_handler smc_diag_handler = { + .owner = THIS_MODULE, .family = AF_SMC, .dump = smc_diag_handler_dump, }; |