Date: Mon, 26 Feb 2001 18:33:39 -0500 From: Jake Burkholder <jburkholder0829@home.com> To: freebsd-current@freebsd.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern init_main.c kern_fork.c kern_mutex.c Message-ID: <20010226233339.49323BACB@cr66388-a.rchrd1.on.wave.home.com> In-Reply-To: Message from Jake Burkholder <jake@FreeBSD.org> of "Mon, 26 Feb 2001 15:27:35 PST." <200102262327.f1QNRZu52746@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 userland. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010226233339.49323BACB>