summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_core.h
diff options
context:
space:
mode:
authorKarsten Graul2018-05-15 17:05:03 +0200
committerDavid S. Miller2018-05-16 17:49:20 +0200
commit517c300e8f041ca9a32a5b3204960d77ed1393b6 (patch)
treed8e329c2b5fb5df8ef3dd14c7fda443938da69be /net/smc/smc_core.h
parentnet/smc: drop messages when link state is inactive (diff)
downloadkernel-qcow2-linux-517c300e8f041ca9a32a5b3204960d77ed1393b6.tar.gz
kernel-qcow2-linux-517c300e8f041ca9a32a5b3204960d77ed1393b6.tar.xz
kernel-qcow2-linux-517c300e8f041ca9a32a5b3204960d77ed1393b6.zip
net/smc: check for pending termination
Avoid to run the processing in smc_lgr_terminate() more than once, remember when the link group termination is triggered. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_core.h')
-rw-r--r--net/smc/smc_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h
index d1753850684b..845dc073de13 100644
--- a/net/smc/smc_core.h
+++ b/net/smc/smc_core.h
@@ -166,7 +166,8 @@ struct smc_link_group {
u8 id[SMC_LGR_ID_SIZE]; /* unique lgr id */
struct delayed_work free_work; /* delayed freeing of an lgr */
- bool sync_err; /* lgr no longer fits to peer */
+ u8 sync_err : 1; /* lgr no longer fits to peer */
+ u8 terminating : 1;/* lgr is terminating */
};
/* Find the connection associated with the given alert token in the link group.