Skip to content

Commit 4b3743e

Browse files
ajstephensPaul Gortmaker
authored andcommitted
tipc: Ensure congested links receive bearer status updates
Modifies code that disables a bearer to ensure that all of its links are deleted, not just its uncongested links. Similarly, modifies code that blocks a bearer to ensure that all of its links are reset, not just its uncongested links. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent a0f40f0 commit 4b3743e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/tipc/bearer.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ int tipc_block_bearer(const char *name)
604604
info("Blocking bearer <%s>\n", name);
605605
spin_lock_bh(&b_ptr->lock);
606606
b_ptr->blocked = 1;
607+
list_splice_init(&b_ptr->cong_links, &b_ptr->links);
607608
list_for_each_entry_safe(l_ptr, temp_l_ptr, &b_ptr->links, link_list) {
608609
struct tipc_node *n_ptr = l_ptr->owner;
609610

@@ -631,6 +632,7 @@ static void bearer_disable(struct tipc_bearer *b_ptr)
631632
spin_lock_bh(&b_ptr->lock);
632633
b_ptr->blocked = 1;
633634
b_ptr->media->disable_bearer(b_ptr);
635+
list_splice_init(&b_ptr->cong_links, &b_ptr->links);
634636
list_for_each_entry_safe(l_ptr, temp_l_ptr, &b_ptr->links, link_list) {
635637
tipc_link_delete(l_ptr);
636638
}

0 commit comments

Comments
 (0)