* NOTE: Must be called with tq->tq_lock held, expects the taskq_ent_t * to already be removed from the free, work, or pending taskq lists. */
| 172 | * to already be removed from the free, work, or pending taskq lists. |
| 173 | */ |
| 174 | static void |
| 175 | task_free(taskq_t *tq, taskq_ent_t *t) |
| 176 | { |
| 177 | ASSERT(tq); |
| 178 | ASSERT(t); |
| 179 | ASSERT(list_empty(&t->tqent_list)); |
| 180 | ASSERT(!timer_pending(&t->tqent_timer)); |
| 181 | |
| 182 | kmem_free(t, sizeof (taskq_ent_t)); |
| 183 | tq->tq_nalloc--; |
| 184 | } |
| 185 | |
| 186 | /* |
| 187 | * NOTE: Must be called with tq->tq_lock held, either destroys the |
no test coverage detected