mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
RDS: Rework path specific indirections
Refactor code to avoid separate indirections for single-path and multipath transports. All transports (both single and mp-capable) will get a pointer to the rds_conn_path, and can trivially derive the rds_connection from the ->cp_conn. 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>
This commit is contained in:
parent
dc9a20020a
commit
226f7a7d97
12 changed files with 29 additions and 40 deletions
|
@ -144,12 +144,13 @@ out:
|
|||
* callbacks to those set by TCP. Our callbacks won't execute again once we
|
||||
* hold the sock lock.
|
||||
*/
|
||||
void rds_tcp_conn_shutdown(struct rds_connection *conn)
|
||||
void rds_tcp_conn_path_shutdown(struct rds_conn_path *cp)
|
||||
{
|
||||
struct rds_tcp_connection *tc = conn->c_transport_data;
|
||||
struct rds_tcp_connection *tc = cp->cp_transport_data;
|
||||
struct socket *sock = tc->t_sock;
|
||||
|
||||
rdsdebug("shutting down conn %p tc %p sock %p\n", conn, tc, sock);
|
||||
rdsdebug("shutting down conn %p tc %p sock %p\n",
|
||||
cp->cp_conn, tc, sock);
|
||||
|
||||
if (sock) {
|
||||
sock->ops->shutdown(sock, RCV_SHUTDOWN | SEND_SHUTDOWN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue