diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-07-01 10:16:08 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-07-01 10:16:08 -0400 |
commit | 5be1f9d82fa73c199ebeee2866dbac83e419c897 (patch) | |
tree | aed1aec34f40b5e0f36dceea8b58d9cfdb41d233 /net/tipc/node.c | |
parent | ff91064ea37c8323eba31cc3d2e22464f107b50d (diff) | |
parent | 4b972a01a7da614b4796475f933094751a295a2f (diff) |
Merge tag 'v5.2-rc6' into for-5.3/block
Merge 5.2-rc6 into for-5.3/block, so we get the same page merge leak
fix. Otherwise we end up having conflicts with future patches between
for-5.3/block and master that touch this area. In particular, it makes
the bio_full() fix hard to backport to stable.
* tag 'v5.2-rc6': (482 commits)
Linux 5.2-rc6
Revert "iommu/vt-d: Fix lock inversion between iommu->lock and device_domain_lock"
Bluetooth: Fix regression with minimum encryption key size alignment
tcp: refine memory limit test in tcp_fragment()
x86/vdso: Prevent segfaults due to hoisted vclock reads
SUNRPC: Fix a credential refcount leak
Revert "SUNRPC: Declare RPC timers as TIMER_DEFERRABLE"
net :sunrpc :clnt :Fix xps refcount imbalance on the error path
NFS4: Only set creation opendata if O_CREAT
ARM: 8867/1: vdso: pass --be8 to linker if necessary
KVM: nVMX: reorganize initial steps of vmx_set_nested_state
KVM: PPC: Book3S HV: Invalidate ERAT when flushing guest TLB entries
habanalabs: use u64_to_user_ptr() for reading user pointers
nfsd: replace Jeff by Chuck as nfsd co-maintainer
inet: clear num_timeout reqsk_alloc()
PCI/P2PDMA: Ignore root complex whitelist when an IOMMU is present
net: mvpp2: debugfs: Add pmap to fs dump
ipv6: Default fib6_type to RTN_UNICAST when not set
net: hns3: Fix inconsistent indenting
net/af_iucv: always register net_device notifier
...
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 9e106d3ed187..550581d47d51 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -766,9 +766,9 @@ static void tipc_node_link_up(struct tipc_node *n, int bearer_id, | |||
766 | * disturbance, wrong session, etc.) | 766 | * disturbance, wrong session, etc.) |
767 | * 3. Link <1B-2B> up | 767 | * 3. Link <1B-2B> up |
768 | * 4. Link endpoint 2A down (e.g. due to link tolerance timeout) | 768 | * 4. Link endpoint 2A down (e.g. due to link tolerance timeout) |
769 | * 5. Node B starts failover onto link <1B-2B> | 769 | * 5. Node 2 starts failover onto link <1B-2B> |
770 | * | 770 | * |
771 | * ==> Node A does never start link/node failover! | 771 | * ==> Node 1 does never start link/node failover! |
772 | * | 772 | * |
773 | * @n: tipc node structure | 773 | * @n: tipc node structure |
774 | * @l: link peer endpoint failingover (- can be NULL) | 774 | * @l: link peer endpoint failingover (- can be NULL) |
@@ -783,6 +783,10 @@ static void tipc_node_link_failover(struct tipc_node *n, struct tipc_link *l, | |||
783 | if (!tipc_link_is_up(tnl)) | 783 | if (!tipc_link_is_up(tnl)) |
784 | return; | 784 | return; |
785 | 785 | ||
786 | /* Don't rush, failure link may be in the process of resetting */ | ||
787 | if (l && !tipc_link_is_reset(l)) | ||
788 | return; | ||
789 | |||
786 | tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); | 790 | tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); |
787 | tipc_node_fsm_evt(n, NODE_SYNCH_END_EVT); | 791 | tipc_node_fsm_evt(n, NODE_SYNCH_END_EVT); |
788 | 792 | ||
@@ -1706,7 +1710,7 @@ static bool tipc_node_check_state(struct tipc_node *n, struct sk_buff *skb, | |||
1706 | /* Initiate or update failover mode if applicable */ | 1710 | /* Initiate or update failover mode if applicable */ |
1707 | if ((usr == TUNNEL_PROTOCOL) && (mtyp == FAILOVER_MSG)) { | 1711 | if ((usr == TUNNEL_PROTOCOL) && (mtyp == FAILOVER_MSG)) { |
1708 | syncpt = oseqno + exp_pkts - 1; | 1712 | syncpt = oseqno + exp_pkts - 1; |
1709 | if (pl && tipc_link_is_up(pl)) { | 1713 | if (pl && !tipc_link_is_reset(pl)) { |
1710 | __tipc_node_link_down(n, &pb_id, xmitq, &maddr); | 1714 | __tipc_node_link_down(n, &pb_id, xmitq, &maddr); |
1711 | trace_tipc_node_link_down(n, true, | 1715 | trace_tipc_node_link_down(n, true, |
1712 | "node link down <- failover!"); | 1716 | "node link down <- failover!"); |