[bde at FreeBSD.org: cvs commit: src/sys/kern kern_resource.c]

Xin LI delphij at frontfree.net
Mon Jun 21 22:37:51 PDT 2004


----- Forwarded message from Bruce Evans <bde at xxxxxxxxxxx> -----

Date: Tue, 22 Jun 2004 04:38:08 +0000 (UTC)
From: Bruce Evans <bde at xxxxxxxxxxx>
	cvs-all at xxxxxxxxxxx
Subject: cvs commit: src/sys/kern kern_resource.c
X-Sieve: CMU Sieve 2.2
Delivered-To: cvs-all at xxxxxxxxxxx
X-FreeBSD-CVS-Branch: RELENG_4
X-BeenThere: cvs-all at xxxxxxxxxxx
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: CVS commit messages for the entire tree <cvs-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request at xxxxxxxxxxx?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-all>
List-Post: <mailto:cvs-all at xxxxxxxxxxx>
List-Help: <mailto:cvs-all-request at xxxxxxxxxxx?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
	<mailto:cvs-all-request at xxxxxxxxxxx?subject=subscribe>
Errors-To: owner-cvs-all at xxxxxxxxxxx
X-Virus-Scanned: by amavisd-new at frontfree.net

bde         2004-06-22 04:38:08 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_4)
    sys/kern             kern_resource.c 
  Raise the ipl to splstatclock() in donice() before calling resetpriority().
  This fixes races with schedcpu() and schedclock().  It corresponds to
  sched locking before the sched_nice() call in -current.  Lock assertions
  made the races very obvious in -current.
  Adjust the process's priority after calling resetpriority() as in
  schedclock() to maintain the invariant that the current priority is
  always _the_ process's user priority if it is a user priority.  This
  is to support uncommitted assertions that the priority is correct on
  return to user mode.  The priority is correct here (modulo bugs
  elsewhere) but it needs to be set explicitly to satisfy the assertions.
  Revision  Changes    Path  +5 -0      src/sys/kern/kern_resource.c
cvs-all at xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe at xxxxxxxxxxx"

----- End forwarded message -----

Xin LI <delphij frontfree net>	http://www.delphij.net/
See complete headers for GPG key and other information.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00002.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20040621/fa317d59/attachment-0021.obj>

More information about the Bugs mailing list