From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v3 1/6] xen, cpupool: correct error handling when removing cpu from cpupool Date: Tue, 8 Mar 2016 11:46:01 +0100 Message-ID: <1457433961.3102.162.camel@citrix.com> References: <1457023730-10997-1-git-send-email-jgross@suse.com> <1457023730-10997-2-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1011694564329074082==" Return-path: In-Reply-To: <1457023730-10997-2-git-send-email-jgross@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Juergen Gross , xen-devel@lists.xen.org Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org --===============1011694564329074082== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nkJ4RQtUdIAbNAG8NOn2" --=-nkJ4RQtUdIAbNAG8NOn2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-03-03 at 17:48 +0100, Juergen Gross wrote: > When schedule_cpu_switch() called from cpupool_unassign_cpu_helper() > returns an error, the domlist_read_lock isn't released again. >=20 > As cpu_disable_scheduler() might have changed affinity of some > domains domain_update_node_affinity() must be called for all domains > in the cpupool even in error case. >=20 > Even if looking weird it is okay to let the to be removed cpu set in > cpupool_free_cpus in case of an error returned by > cpu_disable_scheduler(). Add a comment explaining the reason for > this. >=20 > Cc: Dario Faggioli > Cc: Jan Beulich > Signed-off-by: Juergen Gross > Acked-by: Dario Faggioli Thanks and Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-nkJ4RQtUdIAbNAG8NOn2 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 iEYEABECAAYFAlberWkACgkQk4XaBE3IOsRFTgCeIuZcZCTE46cw9JdJoDUVIRGt bFUAoJpp1gDWePlXUysyutGFENXOiCjP =0WZZ -----END PGP SIGNATURE----- --=-nkJ4RQtUdIAbNAG8NOn2-- --===============1011694564329074082== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============1011694564329074082==--