Skip to content

Commit

Permalink
Merge pull request #800 from tempesta-tech/ao-794
Browse files Browse the repository at this point in the history
Bugfix #794: Detach scheduler from server group before servers' destruction.
  • Loading branch information
aleksostapenko authored Aug 16, 2017
2 parents 85ac463 + 825f006 commit 65d9723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tempesta_fw/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ tfw_sg_release_all(void)
TfwSrvGroup *sg, *sg_tmp;

list_for_each_entry_safe(sg, sg_tmp, &sg_list, list) {
list_for_each_entry_safe(srv, srv_tmp, &sg->srv_list, list)
tfw_server_destroy(srv);
if (sg->sched && sg->sched->del_grp)
sg->sched->del_grp(sg);
list_for_each_entry_safe(srv, srv_tmp, &sg->srv_list, list)
tfw_server_destroy(srv);
kfree(sg);
}
INIT_LIST_HEAD(&sg_list);
Expand Down

0 comments on commit 65d9723

Please sign in to comment.