From: Dario Faggioli Subject: Re: [PATCH] xen/gntdev: Fix sleep-inside-spinlock Date: Fri, 14 Oct 2011 11:57:05 +0200 Message-ID: <1318586226.5062.21.camel@Palantir> References: <1318353219.21925.80.camel@Palantir> <20111011173228.GB32406@phenom.oracle.com> <4E9495F6.4070301@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2002520731==" Return-path: In-Reply-To: <4E9495F6.4070301@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel De Graaf Cc: xen-devel , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============2002520731== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-JD1zMBVXNDYqoiLXabL2" --=-JD1zMBVXNDYqoiLXabL2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2011-10-11 at 15:16 -0400, Daniel De Graaf wrote: > gntdev_put_map tries to acquire a mutex when freeing pages back to the > xenballoon pool, so it cannot be called with a spinlock held. In > gntdev_release, the spinlock is not needed as we are freeing the > structure later; in the ioctl, only the list manipulation needs to be > under the lock. >=20 > Reported-By: Dario Faggioli > Signed-off-by: Daniel De Graaf > Ok, I finally manage in testing this, and it actually cures the issue here! You can add a tested-by tag if you like. Just, if you don't mind, use my corp. e-mail for (both?) the tag(s): 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) --=-JD1zMBVXNDYqoiLXabL2 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) iEYEABECAAYFAk6YB3EACgkQk4XaBE3IOsTWOgCgh3Omp3d71blo4KRnomJHcBE9 twUAoKFRdGI0PVRXhgNNmm9VX+wYa84r =nqFl -----END PGP SIGNATURE----- --=-JD1zMBVXNDYqoiLXabL2-- --===============2002520731== 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 --===============2002520731==--