Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19698
b: refs/heads/master
c: f8addb3
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Feb 3, 2006
1 parent 2188214 commit 4379d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 27852c26baab8b95fc9a2b3e8a18770ecd553f10
refs/heads/master: f8addb3215bf58154f189017d934dfc06b62c75e
8 changes: 4 additions & 4 deletions trunk/net/ipv4/multipath_wrandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static void wrandom_set_nhinfo(__u32 network,
struct multipath_dest *d, *target_dest = NULL;

/* store the weight information for a certain route */
spin_lock(&state[state_idx].lock);
spin_lock_bh(&state[state_idx].lock);

/* find state entry for gateway or add one if necessary */
list_for_each_entry_rcu(r, &state[state_idx].head, list) {
Expand Down Expand Up @@ -276,7 +276,7 @@ static void wrandom_set_nhinfo(__u32 network,
* we are finished
*/

spin_unlock(&state[state_idx].lock);
spin_unlock_bh(&state[state_idx].lock);
}

static void __multipath_free(struct rcu_head *head)
Expand All @@ -302,7 +302,7 @@ static void wrandom_flush(void)
for (i = 0; i < MULTIPATH_STATE_SIZE; ++i) {
struct multipath_route *r;

spin_lock(&state[i].lock);
spin_lock_bh(&state[i].lock);
list_for_each_entry_rcu(r, &state[i].head, list) {
struct multipath_dest *d;
list_for_each_entry_rcu(d, &r->dests, list) {
Expand All @@ -315,7 +315,7 @@ static void wrandom_flush(void)
__multipath_free);
}

spin_unlock(&state[i].lock);
spin_unlock_bh(&state[i].lock);
}
}

Expand Down

0 comments on commit 4379d9d

Please sign in to comment.