uwq_trywork bug fix

上级 804c1733
...@@ -36,9 +36,11 @@ uwq_trywork(void) ...@@ -36,9 +36,11 @@ uwq_trywork(void)
barrier(); barrier();
struct proc *p = c->proc; struct proc *p = c->proc;
if (p == nullptr || p->uwq == nullptr) if (p == nullptr)
continue; continue;
uwq* uwq = p->uwq; uwq* uwq = p->uwq;
if (uwq == nullptr)
continue;
if (uwq->haswork()) { if (uwq->haswork()) {
if (uwq->tryworker()) if (uwq->tryworker())
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论