mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
c809195f55
The RDS core module creates rds_connections based on callbacks
from rds_loop_transport when sending/receiving packets to local
addresses.
These connections will need to be cleaned up when they are
created from a netns that is not init_net, and that netns is deleted.
Add the changes aligned with the changes from
commit ebeeb1ad9b
("rds: tcp: use rds_destroy_pending() to synchronize
netns/module teardown and rds connection/workq management") for
rds_loop_transport
Reported-and-tested-by: syzbot+4c20b3866171ce8441d2@syzkaller.appspotmail.com
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 lines
235 B
C
13 lines
235 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _RDS_LOOP_H
|
|
#define _RDS_LOOP_H
|
|
|
|
/* loop.c */
|
|
extern struct rds_transport rds_loop_transport;
|
|
|
|
int rds_loop_net_init(void);
|
|
void rds_loop_net_exit(void);
|
|
void rds_loop_exit(void);
|
|
|
|
#endif
|