From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH] spinlock: improve spin_is_locked() for recursive locks Date: Thu, 24 Mar 2016 15:19:54 +0100 Message-ID: <1458829194.5082.41.camel@citrix.com> References: <56F3DDF402000078000E008B@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8918391157651025213==" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj67L-0008OI-ST for xen-devel@lists.xenproject.org; Thu, 24 Mar 2016 14:20:07 +0000 In-Reply-To: <56F3DDF402000078000E008B@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Jan Beulich , xen-devel Cc: Ian Jackson , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org --===============8918391157651025213== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-msPqfTRWT0RGkcCbWnol" --=-msPqfTRWT0RGkcCbWnol Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-03-24 at 05:30 -0600, Jan Beulich wrote: > Recursive locks know their current owner, and since we use the > function > solely to determine whether a particular lock is being held by the > current CPU (which so far has been an imprecise check), make actually > check the owner for recusrively acquired locks. >=20 > Signed-off-by: Jan Beulich >=20 Reviewed-by: Dario Faggioli Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-msPqfTRWT0RGkcCbWnol 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 v2 iEYEABECAAYFAlbz94sACgkQk4XaBE3IOsSZ4wCdHVF3t6YyOj0aw/0/ThmHCeRW ClIAn3CL8Pykc6qNdYORcIOHLV1aXf05 =va2L -----END PGP SIGNATURE----- --=-msPqfTRWT0RGkcCbWnol-- --===============8918391157651025213== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============8918391157651025213==--