RDS: TCP: rds_tcp_accept_one() should transition socket from RESETTING to UP
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 17 Jun 2016 20:12:12 +0000 (16:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jun 2016 05:29:54 +0000 (22:29 -0700)
commit3bb549ae4c51028c1930528ae9fcd6eca0474724
treedb24f3dc444bbed8f93fd4b0a9902dd30edabe09
parenta9836cbb5fc885d3b8f3b91b2d47525f7269dec1
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.

Fixes: b5c21c0947c1 ("RDS: TCP: fix race windows in send-path quiescence
by rds_tcp_accept_one()")
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp_listen.c