Skip to content

Commit

Permalink
Upstream: Missing empty taskq for userland
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman committed Dec 16, 2020
1 parent 94046bd commit 61c2b6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/libzpool/taskq.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,9 @@ system_taskq_fini(void)
system_delay_taskq = NULL;
VERIFY0(pthread_key_delete(taskq_tsd));
}

int
EMPTY_TASKQ(taskq_t *tq)
{
return (tq->tq_task.tqent_next == &tq->tq_task || tq->tq_active == 0);
}

0 comments on commit 61c2b6e

Please sign in to comment.