diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2018-01-04 15:52:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-05 19:39:18 +0100 |
commit | c90ecbfaf50d2d7db25c531d9169be7e47435f3f (patch) | |
tree | 51a00b04b5e2ecc649922007def9b8836fb76245 /net/rds/tcp_connect.c | |
parent | Merge branch 'tipc-two-small-cleanups' (diff) | |
download | linux-c90ecbfaf50d2d7db25c531d9169be7e47435f3f.tar.xz linux-c90ecbfaf50d2d7db25c531d9169be7e47435f3f.zip |
rds: Use atomic flag to track connections being destroyed
Replace c_destroy_in_prog by using a bit in cp_flags that
can set/tested atomically.
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>
Diffstat (limited to 'net/rds/tcp_connect.c')
-rw-r--r-- | net/rds/tcp_connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp_connect.c b/net/rds/tcp_connect.c index 46f74dad0e16..534c67aeb20f 100644 --- a/net/rds/tcp_connect.c +++ b/net/rds/tcp_connect.c @@ -170,7 +170,7 @@ void rds_tcp_conn_path_shutdown(struct rds_conn_path *cp) cp->cp_conn, tc, sock); if (sock) { - if (cp->cp_conn->c_destroy_in_prog) + if (test_bit(RDS_DESTROY_PENDING, &cp->cp_flags)) rds_tcp_set_linger(sock); sock->ops->shutdown(sock, RCV_SHUTDOWN | SEND_SHUTDOWN); lock_sock(sock->sk); |