diff options
author | Eric Dumazet <edumazet@google.com> | 2024-01-22 12:25:57 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-23 15:13:54 +0100 |
commit | db5914695a84a7b128ec2e4e9272e6e8091753e1 (patch) | |
tree | 5e9bb2d90f86abfda7814bfd3e38d13a6160510d /include | |
parent | inet_diag: annotate data-races around inet_diag_table[] (diff) | |
download | linux-db5914695a84a7b128ec2e4e9272e6e8091753e1.tar.xz linux-db5914695a84a7b128ec2e4e9272e6e8091753e1.zip |
inet_diag: add module pointer to "struct inet_diag_handler"
Following patch is going to use RCU instead of
inet_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 'include')
-rw-r--r-- | include/linux/inet_diag.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 84abb30a3fbb..a9033696b0aa 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h @@ -8,6 +8,7 @@ struct inet_hashinfo; struct inet_diag_handler { + struct module *owner; void (*dump)(struct sk_buff *skb, struct netlink_callback *cb, const struct inet_diag_req_v2 *r); |