Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108362
b: refs/heads/master
c: 66a0be4
h: refs/heads/master
v: v3
  • Loading branch information
Sven Wegener committed Aug 11, 2008
1 parent 6a018c9 commit c8531df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: afdd614071aef652f5a3e2a06965de049dd8339b
refs/heads/master: 66a0be47200fff30f8c482ea584052c6affb08cb
4 changes: 2 additions & 2 deletions trunk/net/ipv4/ipvs/ip_vs_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int register_ip_vs_scheduler(struct ip_vs_scheduler *scheduler)

write_lock_bh(&__ip_vs_sched_lock);

if (scheduler->n_list.next != &scheduler->n_list) {
if (!list_empty(&scheduler->n_list)) {
write_unlock_bh(&__ip_vs_sched_lock);
ip_vs_use_count_dec();
IP_VS_ERR("register_ip_vs_scheduler(): [%s] scheduler "
Expand Down Expand Up @@ -229,7 +229,7 @@ int unregister_ip_vs_scheduler(struct ip_vs_scheduler *scheduler)
}

write_lock_bh(&__ip_vs_sched_lock);
if (scheduler->n_list.next == &scheduler->n_list) {
if (list_empty(&scheduler->n_list)) {
write_unlock_bh(&__ip_vs_sched_lock);
IP_VS_ERR("unregister_ip_vs_scheduler(): [%s] scheduler "
"is not in the list. failed\n", scheduler->name);
Expand Down

0 comments on commit c8531df

Please sign in to comment.