From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 0 of 1] sched: rework locking for dump debugkey. Date: Wed, 18 Jan 2012 17:13:41 +0100 Message-ID: <1326903221.5856.33.camel@Solace> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0388910624415426256==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" , "Keir (Xen.org)" List-Id: xen-devel@lists.xenproject.org --===============0388910624415426256== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-QkZ/eKx2YFFGqeRxRBoZ" --=-QkZ/eKx2YFFGqeRxRBoZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi George, everyone, I noticed this issue while going through the scheduling code. Basically, for the runq debugkey, locking happens in schedule.c (which we usually don't want) and doesn't seem take credit2's runqs<-->CPUs mapping into account. I think this patch correctly deals with locking in this specific case, but of course I'm happy to hear what you think! :-) I tested the patch with all schedulers, but as you can imagine it's quite hard to produce an actual race and see if it is being handled properly... Thanks and Regards, Dario --=20 <> (Raistlin Majere) ------------------------------------------------------------------- Dario Faggioli, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) PhD Candidate, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa (Italy) --=-QkZ/eKx2YFFGqeRxRBoZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk8W77UACgkQk4XaBE3IOsRgSACfROQyGElqK48ZprLZhFveEuEy bXsAoJGMcBMUd6pxJRPLDHbaX4qLimrN =NT3q -----END PGP SIGNATURE----- --=-QkZ/eKx2YFFGqeRxRBoZ-- --===============0388910624415426256== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0388910624415426256==--