Release sched_lock before calling upcall_free.

This commit is contained in:
David Xu 2003-02-27 05:42:01 +00:00
parent f3194000cb
commit 3b3df40fc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111595
2 changed files with 2 additions and 2 deletions

View File

@ -688,8 +688,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
mtx_lock_spin(&sched_lock);
if (newkg->kg_numupcalls >= ncpus) {
upcall_free(newku);
mtx_unlock_spin(&sched_lock);
upcall_free(newku);
return (EPROCLIM);
}
upcall_link(newku, newkg);

View File

@ -688,8 +688,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
mtx_lock_spin(&sched_lock);
if (newkg->kg_numupcalls >= ncpus) {
upcall_free(newku);
mtx_unlock_spin(&sched_lock);
upcall_free(newku);
return (EPROCLIM);
}
upcall_link(newku, newkg);