| 421 | } |
| 422 | |
| 423 | void |
| 424 | gtaskqueue_drain(struct gtaskqueue *queue, struct gtask *gtask) |
| 425 | { |
| 426 | |
| 427 | if (!queue->tq_spin) |
| 428 | WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, __func__); |
| 429 | |
| 430 | TQ_LOCK(queue); |
| 431 | gtaskqueue_drain_locked(queue, gtask); |
| 432 | TQ_UNLOCK(queue); |
| 433 | } |
| 434 | |
| 435 | void |
| 436 | gtaskqueue_drain_all(struct gtaskqueue *queue) |
nothing calls this directly
no test coverage detected