ceph: use complete_all and wake_up_all
This fixes an issue triggered by running concurrent syncs. One of the syncs would go through while the other would just hang indefinitely. In any case, we never actually want to wake a single waiter, so the *_all functions should be used. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
@ -1501,7 +1501,7 @@ retry:
|
||||
if (wrbuffer_refs == 0)
|
||||
ceph_check_caps(ci, CHECK_CAPS_AUTHONLY, NULL);
|
||||
if (wake)
|
||||
wake_up(&ci->i_cap_wq);
|
||||
wake_up_all(&ci->i_cap_wq);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user