aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipvs/ip_vs_conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipvs/ip_vs_conn.c')
-rw-r--r--net/ipv4/ipvs/ip_vs_conn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/ipvs/ip_vs_conn.c b/net/ipv4/ipvs/ip_vs_conn.c
index 3aec4ac66e3c..0b5e03476ce4 100644
--- a/net/ipv4/ipvs/ip_vs_conn.c
+++ b/net/ipv4/ipvs/ip_vs_conn.c
@@ -494,8 +494,8 @@ int ip_vs_check_template(struct ip_vs_conn *ct)
494 * Checking the dest server status. 494 * Checking the dest server status.
495 */ 495 */
496 if ((dest == NULL) || 496 if ((dest == NULL) ||
497 !(dest->flags & IP_VS_DEST_F_AVAILABLE) || 497 !(dest->flags & IP_VS_DEST_F_AVAILABLE) ||
498 (sysctl_ip_vs_expire_quiescent_template && 498 (sysctl_ip_vs_expire_quiescent_template &&
499 (atomic_read(&dest->weight) == 0))) { 499 (atomic_read(&dest->weight) == 0))) {
500 IP_VS_DBG(9, "check_template: dest not available for " 500 IP_VS_DBG(9, "check_template: dest not available for "
501 "protocol %s s:%u.%u.%u.%u:%d v:%u.%u.%u.%u:%d " 501 "protocol %s s:%u.%u.%u.%u:%d v:%u.%u.%u.%u:%d "
@@ -666,7 +666,7 @@ static void *ip_vs_conn_array(struct seq_file *seq, loff_t pos)
666{ 666{
667 int idx; 667 int idx;
668 struct ip_vs_conn *cp; 668 struct ip_vs_conn *cp;
669 669
670 for(idx = 0; idx < IP_VS_CONN_TAB_SIZE; idx++) { 670 for(idx = 0; idx < IP_VS_CONN_TAB_SIZE; idx++) {
671 ct_read_lock_bh(idx); 671 ct_read_lock_bh(idx);
672 list_for_each_entry(cp, &ip_vs_conn_tab[idx], c_list) { 672 list_for_each_entry(cp, &ip_vs_conn_tab[idx], c_list) {
@@ -694,7 +694,7 @@ static void *ip_vs_conn_seq_next(struct seq_file *seq, void *v, loff_t *pos)
694 int idx; 694 int idx;
695 695
696 ++*pos; 696 ++*pos;
697 if (v == SEQ_START_TOKEN) 697 if (v == SEQ_START_TOKEN)
698 return ip_vs_conn_array(seq, 0); 698 return ip_vs_conn_array(seq, 0);
699 699
700 /* more on same hash chain? */ 700 /* more on same hash chain? */
@@ -709,7 +709,7 @@ static void *ip_vs_conn_seq_next(struct seq_file *seq, void *v, loff_t *pos)
709 list_for_each_entry(cp, &ip_vs_conn_tab[idx], c_list) { 709 list_for_each_entry(cp, &ip_vs_conn_tab[idx], c_list) {
710 seq->private = &ip_vs_conn_tab[idx]; 710 seq->private = &ip_vs_conn_tab[idx];
711 return cp; 711 return cp;
712 } 712 }
713 ct_read_unlock_bh(idx); 713 ct_read_unlock_bh(idx);
714 } 714 }
715 seq->private = NULL; 715 seq->private = NULL;