| 592 | } |
| 593 | |
| 594 | void |
| 595 | taskqueue_drain_all(struct taskqueue *queue) |
| 596 | { |
| 597 | |
| 598 | if (!queue->tq_spin) |
| 599 | WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, __func__); |
| 600 | |
| 601 | TQ_LOCK(queue); |
| 602 | (void)taskqueue_drain_tq_queue(queue); |
| 603 | (void)taskqueue_drain_tq_active(queue); |
| 604 | TQ_UNLOCK(queue); |
| 605 | } |
| 606 | |
| 607 | void |
| 608 | taskqueue_drain_timeout(struct taskqueue *queue, |
no test coverage detected