> jake        2001/02/26 15:27:35 PST
>   Modified files:
>     sys/kern             init_main.c kern_fork.c kern_mutex.c 
>   Log:
>   Initialize native priority to PRI_MAX.  It was usually 0 which made a
>   process's priority go through the roof when it released a (contested)
>   mutex.  Only set the native priority in mtx_lock if hasn't already
>   been set.
>   Reviewed by:        jhb
>   Revision  Changes    Path
>   1.161     +2 -1      src/sys/kern/init_main.c
>   1.102     +2 -1      src/sys/kern/kern_fork.c
>   1.53      +3 -12     src/sys/kern/kern_mutex.c

This should fix the problems with syncing the disks at shutdown.

What happened was the sync-ors priority would get set to 0, which
didn't allow any interrupt threads to run.  Usually this didn't
matter because the priority gets lowered when returning to user
mode.  But, of course, shutting down implies never returning to

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to