MCPcopy Create free account
hub / github.com/F-Stack/f-stack / taskq_wait_check

Function taskq_wait_check

freebsd/contrib/openzfs/module/os/linux/spl/spl-taskq.c:469–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467EXPORT_SYMBOL(taskq_wait_outstanding);
468
469static int
470taskq_wait_check(taskq_t *tq)
471{
472 int rc;
473 unsigned long flags;
474
475 spin_lock_irqsave_nested(&tq->tq_lock, flags, tq->tq_lock_class);
476 rc = (tq->tq_lowest_id == tq->tq_next_id);
477 spin_unlock_irqrestore(&tq->tq_lock, flags);
478
479 return (rc);
480}
481
482/*
483 * The taskq_wait() function will block until the taskq is empty.

Callers 1

taskq_waitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected