Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266103
b: refs/heads/master
c: 23f0ff9
h: refs/heads/master
i:
  266101: b5ad383
  266099: 1092b00
  266095: 1f1f617
v: v3
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Sep 1, 2011
1 parent 34f669a commit 92f0cb8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ff9f924a565aa22c06169c89fcd2133d820a9d2
refs/heads/master: 23f0ff906af93be6edb579824474117b232c7cc0
21 changes: 0 additions & 21 deletions trunk/net/tipc/bcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,27 +667,6 @@ void tipc_bcbearer_sort(void)
spin_unlock_bh(&bc_lock);
}

/**
* tipc_bcbearer_push - resolve bearer congestion
*
* Forces bclink to push out any unsent packets, until all packets are gone
* or congestion reoccurs.
* No locks set when function called
*/

void tipc_bcbearer_push(void)
{
struct tipc_bearer *b_ptr;

spin_lock_bh(&bc_lock);
b_ptr = &bcbearer->bearer;
if (b_ptr->blocked) {
b_ptr->blocked = 0;
tipc_bearer_lock_push(b_ptr);
}
spin_unlock_bh(&bc_lock);
}


int tipc_bclink_stats(char *buf, const u32 buf_size)
{
Expand Down
1 change: 0 additions & 1 deletion trunk/net/tipc/bcast.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,5 @@ int tipc_bclink_stats(char *stats_buf, const u32 buf_size);
int tipc_bclink_reset_stats(void);
int tipc_bclink_set_queue_limits(u32 limit);
void tipc_bcbearer_sort(void);
void tipc_bcbearer_push(void);

#endif
6 changes: 1 addition & 5 deletions trunk/net/tipc/bearer.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,9 @@ static int bearer_push(struct tipc_bearer *b_ptr)

void tipc_bearer_lock_push(struct tipc_bearer *b_ptr)
{
int res;

spin_lock_bh(&b_ptr->lock);
res = bearer_push(b_ptr);
bearer_push(b_ptr);
spin_unlock_bh(&b_ptr->lock);
if (res)
tipc_bcbearer_push();
}


Expand Down

0 comments on commit 92f0cb8

Please sign in to comment.