Skip to content

Commit

Permalink
skip rest of thread loop for inactive workq threads
Browse files Browse the repository at this point in the history
  • Loading branch information
kmacy committed Aug 24, 2015
1 parent 3d020b4 commit 550d458
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/kern/kern_thread.c
Expand Up @@ -779,6 +779,7 @@ thread_single(struct proc *p, int mode)
if (td2->td_state == TDS_INACTIVE && (td2->td_flags & TDF_WORKQ)) {
thread_unlock(td2);
thread_stopped(p);
continue;
}
td2->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK;
if (TD_IS_INHIBITED(td2)) {
Expand Down

0 comments on commit 550d458

Please sign in to comment.