- Use taskqueue_thread rather than taskqueue_swi since our task is going
to vrele, which may vop lock. This is not safe in a software interrupt context.
This commit is contained in:
parent
2a0f491ada
commit
01f6ce3a70
@ -283,7 +283,7 @@ prison_free(struct prison *pr)
|
||||
mtx_unlock(&allprison_mtx);
|
||||
|
||||
TASK_INIT(&pr->pr_task, 0, prison_complete, pr);
|
||||
taskqueue_enqueue(taskqueue_swi, &pr->pr_task);
|
||||
taskqueue_enqueue(taskqueue_thread, &pr->pr_task);
|
||||
return;
|
||||
}
|
||||
mtx_unlock(&pr->pr_mtx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user