Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108367
b: refs/heads/master
c: 519e49e
h: refs/heads/master
i:
  108365: d654745
  108363: 9c2695a
  108359: 559c6fa
  108351: bffb007
v: v3
  • Loading branch information
Sven Wegener committed Aug 11, 2008
1 parent e797195 commit b8586ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 3a14a313f9b406c37ab7e3f855b060eb8587b8c7
refs/heads/master: 519e49e888458649dde453d36c08b7f3432525dc
6 changes: 3 additions & 3 deletions trunk/net/ipv4/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,9 @@ static const struct file_operations ip_vs_info_fops = {

#endif

struct ip_vs_stats ip_vs_stats;
struct ip_vs_stats ip_vs_stats = {
.lock = __SPIN_LOCK_UNLOCKED(ip_vs_stats.lock),
};

#ifdef CONFIG_PROC_FS
static int ip_vs_stats_show(struct seq_file *seq, void *v)
Expand Down Expand Up @@ -2333,8 +2335,6 @@ int __init ip_vs_control_init(void)
INIT_LIST_HEAD(&ip_vs_rtable[idx]);
}

memset(&ip_vs_stats, 0, sizeof(ip_vs_stats));
spin_lock_init(&ip_vs_stats.lock);
ip_vs_new_estimator(&ip_vs_stats);

/* Hook the defense timer */
Expand Down

0 comments on commit b8586ab

Please sign in to comment.