From owner-svn-src-all@FreeBSD.ORG Sat Dec 3 11:15:50 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C59A6106564A; Sat, 3 Dec 2011 11:15:50 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm2.ukr.net (fsm2.ukr.net [195.214.192.121]) by mx1.freebsd.org (Postfix) with ESMTP id 747938FC14; Sat, 3 Dec 2011 11:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=iFWqz/oyukeyB9mvt+Qkxf/Yeh8/xmpX6av92Bn7MG0=; b=YoOfN/PL/crwENmhXSbRYgz+ErdURnCh/lLn4+BHwB8Bz3my5Uw55GtOVnZZEXvn/iNIkGZiRtyLFLWge5GfFdzg8IbEvmkgD/D7MXgbwOva5JpSwvCY92ghbZBEth4p5h/8vjUsfoaGLQSokpvE9UTNv5Wuw764MKpwpOXa51s=; Received: from [178.137.138.140] (helo=nonamehost.) by fsm2.ukr.net with esmtpsa ID 1RWnC3-0001yx-0a ; Sat, 03 Dec 2011 12:51:43 +0200 Date: Sat, 3 Dec 2011 12:51:42 +0200 From: Ivan Klymenko To: John Baldwin Message-ID: <20111203125142.442e4bf6@nonamehost.> In-Reply-To: <201112021959.pB2Jxka6006739@svn.freebsd.org> References: <201112021959.pB2Jxka6006739@svn.freebsd.org> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r228207 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 11:15:50 -0000 =D0=92 Fri, 2 Dec 2011 19:59:46 +0000 (UTC) John Baldwin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Author: jhb > Date: Fri Dec 2 19:59:46 2011 > New Revision: 228207 > URL: http://svn.freebsd.org/changeset/base/228207 >=20 > Log: > When changing the user priority of a thread, change the real > priority in addition to the user priority for threads whose current > real priority is equal to the previous user priority or if the new > priority is a real-time priority. This allows priority changes of > other threads to have an immediate effect. > =20 > MFC after: 2 weeks >=20 > Modified: > head/sys/kern/kern_resource.c >=20 > Modified: head/sys/kern/kern_resource.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/kern/kern_resource.c Fri Dec 2 19:56:46 > 2011 (r228206) +++ head/sys/kern/kern_resource.c Fri > Dec 2 19:59:46 2011 (r228207) @@ -488,8 +488,9 @@ > rtp_to_pri(struct rtprio *rtp, struct th sched_class(td, > rtp->type); /* XXX fix */ oldpri =3D td->td_user_pri; > sched_user_prio(td, newpri); > - if (curthread =3D=3D td) > - sched_prio(curthread, td->td_user_pri); /* XXX > dubious */ > + if (td->td_user_pri !=3D oldpri && (td =3D=3D curthread || > + td->td_priority =3D=3D oldpri || td->td_user_pri >=3D > PRI_MAX_REALTIME)) > + sched_prio(td, td->td_user_pri); > if (TD_ON_UPILOCK(td) && oldpri !=3D newpri) { > critical_enter(); > thread_unlock(td); > _______________________________________________ > svn-src-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" >=20 >=20 Thank you! It's a little corrected the situation with interactivity with using ULE scheduler... But quite a bit... :)