Commit 936024e0 authored by Stephen Hemminger's avatar Stephen Hemminger

[IPVS]: Fix errors in list_for_each changes.

parent 0f290034
...@@ -222,6 +222,8 @@ void unregister_ip_vs_app(struct ip_vs_app *app) ...@@ -222,6 +222,8 @@ void unregister_ip_vs_app(struct ip_vs_app *app)
ip_vs_app_inc_release(inc); ip_vs_app_inc_release(inc);
} }
list_del(&app->a_list);
up(&__ip_vs_app_mutex); up(&__ip_vs_app_mutex);
/* decrease the module use count */ /* decrease the module use count */
......
...@@ -73,12 +73,12 @@ ip_vs_rr_schedule(struct ip_vs_service *svc, struct iphdr *iph) ...@@ -73,12 +73,12 @@ ip_vs_rr_schedule(struct ip_vs_service *svc, struct iphdr *iph)
continue; continue;
} }
dest = list_entry(q, struct ip_vs_dest, n_list); dest = list_entry(q, struct ip_vs_dest, n_list);
if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) && if (!(dest->flags & IP_VS_DEST_F_OVERLOAD) &&
atomic_read(&dest->weight) > 0) atomic_read(&dest->weight) > 0)
/* HIT */ /* HIT */
goto out; goto out;
q = q->next;
} while (q != p); } while (q != p);
write_unlock(&svc->sched_lock); write_unlock(&svc->sched_lock);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment