diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2018-01-04 17:52:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-05 21:39:18 +0300 |
commit | c90ecbfaf50d2d7db25c531d9169be7e47435f3f (patch) | |
tree | 51a00b04b5e2ecc649922007def9b8836fb76245 /net/rds/rds.h | |
parent | eb9aa1bfbad8c9fc280adf43cb480911295cfa3f (diff) | |
download | linux-c90ecbfaf50d2d7db25c531d9169be7e47435f3f.tar.xz |
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/rds.h')
-rw-r--r-- | net/rds/rds.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h index d09f6c1facb4..374ae83b60d4 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h @@ -88,6 +88,7 @@ enum { #define RDS_RECONNECT_PENDING 1 #define RDS_IN_XMIT 2 #define RDS_RECV_REFILL 3 +#define RDS_DESTROY_PENDING 4 /* Max number of multipaths per RDS connection. Must be a power of 2 */ #define RDS_MPATH_WORKERS 8 @@ -139,8 +140,7 @@ struct rds_connection { __be32 c_faddr; unsigned int c_loopback:1, c_ping_triggered:1, - c_destroy_in_prog:1, - c_pad_to_32:29; + c_pad_to_32:30; int c_npaths; struct rds_connection *c_passive; struct rds_transport *c_trans; |