RDS: TCP: rds_tcp_accept_one() should transition socket from RESETTING to UP
Subsystems (3)
PATCH 1/1 RDS: TCP: rds_tcp_accept_one() should transition socket from RESETTING to UP
The state of the rds_connection after rds_tcp_reset_callbacks() would be RDS_CONN_RESETTING and this is the value that should be passed by rds_tcp_accept_one() to rds_connect_path_complete() to transition the socket to RDS_CONN_UP.
by rds_tcp_accept_one()")
--- net/rds/tcp_listen.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/rds/tcp_listen.c +1 -1
@@ -138,7 +138,7 @@ int rds_tcp_accept_one(struct socket *sock)rds_tcp_reset_callbacks (new_sock, conn); conn->c_outgoing =0 ;/* rds_connect_path_complete() marks RDS_CONN_UP */ -rds_connect_path_complete (conn,RDS_CONN_DISCONNECTING ); +rds_connect_path_complete (conn,RDS_CONN_RESETTING ); } }else {rds_tcp_set_callbacks (new_sock, conn);
Signature · 1 line
1.7.1
Quoted 9 lines · Sowmini Varadhan
The state of the
rds_connectionafterrds_tcp_reset_callbacks()would beRDS_CONN_RESETTINGand this is the value that should be passed byrds_tcp_accept_one()tords_connect_path_complete()to transition the socket toRDS_CONN_UP.Fixes b5c21c0947c1 ("RDS: TCP: fix race windows in send-path quiescenceby
rds_tcp_accept_one()")Signed-off-by Sowmini Varadhan <[email protected]>---
From: Sowmini Varadhan <[email protected]>
Date: Fri, 17 Jun 2016 16:12:12 -0400
Quoted 8 lines
The state of the
rds_connectionafterrds_tcp_reset_callbacks()would beRDS_CONN_RESETTINGand this is the value that should be passed byrds_tcp_accept_one()tords_connect_path_complete()to transition the socket toRDS_CONN_UP.Fixes b5c21c0947c1 ("RDS: TCP: fix race windows in send-path quiescenceby
rds_tcp_accept_one()")Signed-off-by Sowmini Varadhan <[email protected]>
Applied.