Resume original thread only if not null
@@ -142,6 +142,7 @@ static void blockq_apply_bi_locked(blockq bq, blockq_item bi, u64 flags)
if ((flags & (BLOCKQ_ACTION_NULLIFY | BLOCKQ_ACTION_TIMEDOUT)) ||
(rv != BLOCKQ_BLOCK_REQUIRED))
blockq_item_finish(bq, bi);
+ if (ot)
thread_resume(ot);
}
