Fix LOR between scheduler lock and SMP rendezvous lock.

Reviewed by: jhb
This commit is contained in:
David Xu 2003-07-08 00:14:30 +00:00
parent e1377f6f55
commit e2e8935832
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117321

View file

@ -289,9 +289,7 @@ set_user_ldt_rv(struct thread *td)
if (td->td_proc != curthread->td_proc)
return;
mtx_lock_spin(&sched_lock);
set_user_ldt(&td->td_proc->p_md);
mtx_unlock_spin(&sched_lock);
}
#endif
@ -462,9 +460,6 @@ i386_set_ldt(td, args)
#endif
} else {
mdp->md_ldt = pldt = new_ldt;
#ifdef SMP
mtx_unlock_spin(&sched_lock);
#endif
}
#ifdef SMP
/* signal other cpus to reload ldt */
@ -472,8 +467,8 @@ i386_set_ldt(td, args)
NULL, td);
#else
set_user_ldt(mdp);
mtx_unlock_spin(&sched_lock);
#endif
mtx_unlock_spin(&sched_lock);
}
descs_size = uap->num * sizeof(union descriptor);