Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44291
b: refs/heads/master
c: 37004af
h: refs/heads/master
i:
  44289: 5b5bbab
  44287: 39ae60f
v: v3
  • Loading branch information
Simon Horman authored and David S. Miller committed Dec 11, 2006
1 parent 64a3a49 commit cc00049
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 89eaeb09ba01632511f69ce8e14c8d2abd2dbe9e
refs/heads/master: 37004af3aaf28f39981754a05cf74361c0834a7a
9 changes: 6 additions & 3 deletions trunk/net/ipv4/ipvs/ip_vs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,12 @@ int start_sync_thread(int state, char *mcast_ifn, __u8 syncid)

ip_vs_sync_state |= state;
if (state == IP_VS_STATE_MASTER) {
strlcpy(ip_vs_master_mcast_ifn, mcast_ifn, sizeof(ip_vs_master_mcast_ifn));
strlcpy(ip_vs_master_mcast_ifn, mcast_ifn,
sizeof(ip_vs_master_mcast_ifn));
ip_vs_master_syncid = syncid;
} else {
strlcpy(ip_vs_backup_mcast_ifn, mcast_ifn, sizeof(ip_vs_backup_mcast_ifn));
strlcpy(ip_vs_backup_mcast_ifn, mcast_ifn,
sizeof(ip_vs_backup_mcast_ifn));
ip_vs_backup_syncid = syncid;
}

Expand Down Expand Up @@ -880,7 +882,8 @@ int stop_sync_thread(int state)

IP_VS_DBG(7, "%s: pid %d\n", __FUNCTION__, current->pid);
IP_VS_INFO("stopping sync thread %d ...\n",
(state == IP_VS_STATE_MASTER) ? sync_master_pid : sync_backup_pid);
(state == IP_VS_STATE_MASTER) ?
sync_master_pid : sync_backup_pid);

__set_current_state(TASK_UNINTERRUPTIBLE);
add_wait_queue(&stop_sync_wait, &wait);
Expand Down

0 comments on commit cc00049

Please sign in to comment.