diff options
Diffstat (limited to 'net/rds/tcp.c')
-rw-r--r-- | net/rds/tcp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c index d24f6c142d03..b411bb764f07 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c | |||
@@ -551,6 +551,13 @@ static void rds_tcp_kill_sock(struct net *net) | |||
551 | } | 551 | } |
552 | } | 552 | } |
553 | 553 | ||
554 | void *rds_tcp_listen_sock_def_readable(struct net *net) | ||
555 | { | ||
556 | struct rds_tcp_net *rtn = net_generic(net, rds_tcp_netid); | ||
557 | |||
558 | return rtn->rds_tcp_listen_sock->sk->sk_user_data; | ||
559 | } | ||
560 | |||
554 | static int rds_tcp_dev_event(struct notifier_block *this, | 561 | static int rds_tcp_dev_event(struct notifier_block *this, |
555 | unsigned long event, void *ptr) | 562 | unsigned long event, void *ptr) |
556 | { | 563 | { |