| 402 | } |
| 403 | |
| 404 | int |
| 405 | gtaskqueue_cancel(struct gtaskqueue *queue, struct gtask *gtask) |
| 406 | { |
| 407 | int error; |
| 408 | |
| 409 | TQ_LOCK(queue); |
| 410 | error = gtaskqueue_cancel_locked(queue, gtask); |
| 411 | TQ_UNLOCK(queue); |
| 412 | |
| 413 | return (error); |
| 414 | } |
| 415 | |
| 416 | static void |
| 417 | gtaskqueue_drain_locked(struct gtaskqueue *queue, struct gtask *gtask) |
nothing calls this directly
no test coverage detected