Commit 80ee0738 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Take a stab at #1341

parent 2c160677
......@@ -228,7 +228,8 @@ ssize_t
VBO_waitlen(struct busyobj *bo, ssize_t l)
{
Lck_Lock(&bo->mtx);
assert(l <= bo->fetch_obj->len);
if (bo->state <= BOS_FINISHED)
assert(l <= bo->fetch_obj->len);
while (1) {
if (bo->fetch_obj->len > l || bo->state >= BOS_FINISHED) {
l = bo->fetch_obj->len;
......
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