]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rds: tcp: allow progress of rds_conn_shutdown if the rds_connection is marked ERROR...
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 31 Mar 2017 22:56:30 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 02:41:00 +0000 (19:41 -0700)
commite97656d03ca0cea888a0b9d382abce8233771f31
tree4717f3e414f1d9a36a205d0a306888be19c1cc29
parentd3fbff306c215946cdbcf9ace4d0b78e9f72b5c4
rds: tcp: allow progress of rds_conn_shutdown if the rds_connection is marked ERROR by an intervening FIN

rds_conn_shutdown() runs in workq context, and marks the rds_connection
as DISCONNECTING before quiescing Tx/Rx paths. However, after all I/O
has quiesced, we may still find the rds_connection state to be
RDS_CONN_ERROR if an intervening FIN was processed in softirq context.

This is not a fatal error: rds_conn_shutdown() should continue the
shutdown, and there is no need to log noisy messages about this event.

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/connection.c