DragonFly BSD
DragonFly bugs List (threaded) for 2004-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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

From: Xin LI <delphij@xxxxxxxxxxxxx>
Date: Tue, 22 Jun 2004 13:36:30 +0800


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

Date: Tue, 22 Jun 2004 04:38:08 +0000 (UTC)
From: Bruce Evans <bde@xxxxxxxxxxx>
Subject: cvs commit: src/sys/kern kern_resource.c
X-Sieve: CMU Sieve 2.2
Delivered-To: cvs-all@xxxxxxxxxxx
X-FreeBSD-CVS-Branch: RELENG_4
X-BeenThere: cvs-all@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>,
List-Archive: <http://lists.freebsd.org/pipermail/cvs-all>
List-Post: <mailto:cvs-all@xxxxxxxxxxx>
List-Help: <mailto:cvs-all-request@xxxxxxxxxxx?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-all>,
Errors-To: owner-cvs-all@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@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@xxxxxxxxxxx"

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

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

Attachment: pgp00002.pgp
Description: PGP signature

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]