|
@@ -908,7 +908,7 @@ ip_vs_edit_dest(struct ip_vs_service *svc, struct ip_vs_dest_user *udest)
|
|
write_lock_bh(&__ip_vs_svc_lock);
|
|
write_lock_bh(&__ip_vs_svc_lock);
|
|
|
|
|
|
/* Wait until all other svc users go away */
|
|
/* Wait until all other svc users go away */
|
|
- while (atomic_read(&svc->usecnt) > 1) {};
|
|
|
|
|
|
+ IP_VS_WAIT_WHILE(atomic_read(&svc->usecnt) > 1);
|
|
|
|
|
|
/* call the update_service, because server weight may be changed */
|
|
/* call the update_service, because server weight may be changed */
|
|
svc->scheduler->update_service(svc);
|
|
svc->scheduler->update_service(svc);
|