* The taskq_wait() function will block until the taskq is empty. * This means that if a taskq re-dispatches work to itself taskq_wait() * callers will block indefinitely. */
| 485 | * callers will block indefinitely. |
| 486 | */ |
| 487 | void |
| 488 | taskq_wait(taskq_t *tq) |
| 489 | { |
| 490 | wait_event(tq->tq_wait_waitq, taskq_wait_check(tq)); |
| 491 | } |
| 492 | EXPORT_SYMBOL(taskq_wait); |
| 493 | |
| 494 | int |
no test coverage detected