summaryrefslogtreecommitdiffstats
path: root/net/rds/tcp.h
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2016-06-30 16:11:13 -0700
committerDavid S. Miller <davem@davemloft.net>2016-07-01 16:45:17 -0400
commitafb4164d91c7486a1d4ab098a1b88e27b5e25772 (patch)
tree9d1b76c3268d9c491fc9280237b62f7fb7a49892 /net/rds/tcp.h
parent02105b2ccdd6344146e0296172a9e0f17ff624ef (diff)
downloadop-kernel-dev-afb4164d91c7486a1d4ab098a1b88e27b5e25772.zip
op-kernel-dev-afb4164d91c7486a1d4ab098a1b88e27b5e25772.tar.gz
RDS: TCP: Refactor connection destruction to handle multiple paths
A single rds_connection may have multiple rds_conn_paths that have to be carefully and correctly destroyed, for both rmmod and netns-delete cases. For both cases, we extract a single rds_tcp_connection for each conn into a temporary list, and then invoke rds_conn_destroy() which iteratively dismantles every path in the rds_connection. For the netns deletion case, we additionally have to make sure that we do not leave a socket in TIME_WAIT state, as this will hold up the netns deletion. Thus we call rds_tcp_conn_paths_destroy() to reset state quickly. 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>
Diffstat (limited to 'net/rds/tcp.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud