| 467 | EXPORT_SYMBOL(taskq_wait_outstanding); |
| 468 | |
| 469 | static int |
| 470 | taskq_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. |