From patchwork Mon Jun 12 10:11:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: f4da1594@opayq.com X-Patchwork-Id: 9780709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7629360244 for ; Mon, 12 Jun 2017 10:14:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61B3426E51 for ; Mon, 12 Jun 2017 10:14:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52F10285E9; Mon, 12 Jun 2017 10:14:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=BAYES_00, HTML_IMAGE_ONLY_16, HTML_MESSAGE,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5B06926E51 for ; Mon, 12 Jun 2017 10:14:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKMKF-00072B-9u; Mon, 12 Jun 2017 10:11:59 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKMKD-000725-Ux for xen-devel@lists.xensource.com; Mon, 12 Jun 2017 10:11:58 +0000 Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id 9A/FD-01734-CE86E395; Mon, 12 Jun 2017 10:11:56 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDKsWRWlGSWpSXmKPExsWyI3PbXN3nGXa RBh/7rCzuTXnP7sDosb1vF3sAYxRrZl5SfkUCa8bRg/dZCu5PZaxYveMJSwPjhk7GLkZODhYB PYmJv2YxdTFycQgJzGaSWLh9KViCTUBC4lx/HxOILSKgKLFu9TsWEJtXwEti3rfPrBC2oMTJm U/A4hIC4hKfG76zQthlEhe2X2WDsCslfs25xtzFyMHBLJAi8etxLEiYUUBG4tSkG2AlwgK6Ev +azjKClLAIaEtc3SUI0SktMX3RU3aQsIRAmMThp6oQ4TqJ/csOQA1Xlmhb+4QZxr78dBvbBEa hWUhum4WwFyTMLOAh8fT2fnYI20fixv5bzBC2pkTr9t9QcQ2JBXf2MUK0akgcWBgPYZpIbO+3 gqhQlJjS/RCqWkziyOXLrBC2qsSsXQ1sEOUyEj1LZSHC2hLLFr5mXsDIu4pRvTi1qCy1SNdEL 6koMz2jJDcxM0fX0MBULze1uDgxPTUnMalYLzk/dxMjMGYZgGAH460+50OMkhxMSqK8W67YRA rxJeWnVGYkFmfEF5XmpBYfYpTh4FCS4F2dbhcpJFiUmp5akZaZA0weMGkJDh4lEd7b4UBp3uK CxNzizHSI1ClGXY4Nq9d/YRJiycvPS5US560HmSEAUpRRmgc3ApbILjHKSgnzMgIdJcRTkFqU m1mCKv+KUZyDUUmY91Aa0BSezLwSuE2vgI5gAjriOsj9vMUliQgpqQZG/c5Pdx8IsnGtvRd4P TkrX3zPJJbwjT9v/rm2+vKMPXqrvbju8QRND+/lvcP18fvdqvK+n5tXudZnR6x96/LC63bT7r D5stLd+9LOHSmJ3qb697hAcLlm8O9La3dqvOrVW18nacR/g4k92nmBcLyXkoq52W/FuMrHhuK 1fJ4HGz5Mc+P8/YFbiaU4I9FQi7moOBEAn24c+l8DAAA= X-Env-Sender: f4da1594@opayq.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1497262309!102922284!1 X-Originating-IP: [184.105.182.157] X-SpamReason: No, hits=0.7 required=7.0 tests=HTML_IMAGE_ONLY_16, HTML_MESSAGE,ML_IS_POSSIBLE_BOUNCE X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 54717 invoked from network); 12 Jun 2017 10:11:51 -0000 Received: from opayq-out-07.junkemailfilter.com (HELO opayq-out-07.junkemailfilter.com) (184.105.182.157) by server-4.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 12 Jun 2017 10:11:51 -0000 Received: from smtp4.opayq.com ([23.21.143.60]:60750) helo=[23.21.143.60] by opayq-outbound.junkemailfilter.com with esmtps (TLSv1.2:AES256-SHA256:256) (Exim 4.89) id 1dKMK4-0001JF-L5 on interface=184.105.182.150 for xen-devel@lists.xensource.com; Mon, 12 Jun 2017 03:11:48 -0700 From: f4da1594@opayq.com To: xen-devel@lists.xensource.com Message-ID: <1117997412.19591.1497262306313.JavaMail.root@smtp4.opayq.com> MIME-Version: 1.0 X-GetAbine-Processed: 1 X-Gm-Message-State: AODbwcAQ2BpLRIa4gWWEiveZws9GARzQECYN7/gbHNOYbhkD3AElqu/Z efmpsKJGFjCYkXJRme3WvBvVVev88vZUp8on7+ZF X-Received: by 10.98.16.220 with SMTP id 89mr38077212pfq.210.1497262305168; Mon, 12 Jun 2017 03:11:45 -0700 (PDT) Auto-Submitted: auto-replied Date: Mon, 12 Jun 2017 03:11:45 -0700 (PDT) X-Sender-Domain: google.com X-Spamfilter-host: opayq-outbound.junkemailfilter.com - http://www.junkemailfilter.com X-Key-ID: eGVuLWRldmVsQGxpc3RzLnhlbnNvdXJjZS5jb20gZjRkYTE1OTRAb3BheXEuY29tIDIwMTctMDYtMTIgMDM6MTE6NDggMWRLTUs0LTAwMDFKRi1MNQ== X-Sender-Host-Address: 23.21.143.60 X-Sender-Host-Name: smtp4.opayq.com Subject: [Xen-devel] Delivery Status Notification (Delay) X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP ** Delivery incomplete ** There was a temporary problem delivering your message to curtiskwong9@gmail.com. Gmail will retry for 46 more hours. You'll be notified if the delivery fails permanently. The response was: Receive rate too high JFm sMVWanaw4KLwoW5wAsZmx1FmSPbONcDtYwIFBJn3K28/cfbN+L86zbZi1HoS4E3MS1= sG bdV+U9Fo0QJ7FpjA/Y3keHGL/sZrmCwgB1SITs5fB9puF4UFe5dJIIje8xqA91OxqF= Mh iFTn5ZIb6+3QUsCNSFF7L6LgvC6bQH5YmlnAAbdHShYWsPj1IUmHbp9v8luoL4xXF2= vc 26ZqGhucsg7Vk7irKHlNBrRhjJgFqCPtUhXtpi6Gtnhq8SS/LbzcQ22z/C4GulaeFx= sY SwgA=3D=3D ARC-Message-Signature: i=3D1; a=3Drsa-sha256; c=3Drelaxed/relaxed; d=3Dgoog= le.com; s=3Darc-20160816; h=3Dlist-subscribe:list-help:list-post:list-unsubscribe :list-unsubscribe:list-id:precedence:subject:date:message-id:to :reply-to:sender:from:content-transfer-encoding:mime-version :dkim-signature:delivery-date:arc-authentication-results; bh=3DVjlPKw0i9qUoBL0xyhs8fU5mFJ4bGo9Py+LjCTkspYk=3D; b=3DWXZuuiaqUDyY8Ql/XLYnAxzKBG0LGB6nlt3nVCMKI93leXpFdYz/LGRzElM52gn= fTL I9t9z5oCOFMGtaffRTdRaihFwvYoutHXQPYytnJapygZ6774LpzliXW1IOVJjUJ4ox= pB NRMgmpsBpLWm56zfOduOmTSxCA2fCOh8Uh6i1qI1owuPBF+s09dqYmKlrN/aG8ps3z= 6l Jq1XiRdIsBxtLM/ROpnHNQFuQPC6kEDFqZOELaPGh1Ax1igPfLnmo/4zviEPToPshy= PM zUy5/jUHG9VLV/bgnJ4koyVOD3PIYrjVn9H1GfY70d7Gg/bzrHPHNbncGv/xT2yi3L= jt Pq2g=3D=3D ARC-Authentication-Results: i=3D1; mx.google.com; dkim=3Dpass header.i=3D@opayq.com; spf=3Dpass (google.com: domain of fwd-737qhysmhvayqaucaoiqbdaagaqlma= 2yamheccjdlibayawyakiazaqhsmccwmblia4uanqueigcimbkmazuz4aaeaaca=3D=3D=3D@op= ayq.com designates 184.105.182.152 as permitted sender) smtp.mailfrom=3DFWD= -737QHYSMHVAYQAUCAOIQBDAAGAQLMA2YAMHECCJDLIBAYAWYAKIAZAQHSMCCWMBLIA4UANQUEI= GCIMBKMAZUZ4AAEAACA=3D=3D=3D@opayq.com; dmarc=3Dpass (p=3DNONE sp=3DNONE dis=3DNONE) header.from=3Dopayq.com Return-Path: Received: from opayq-out-02.junkemailfilter.com (opayq-out-02.junkemailfilt= er.com. [184.105.182.152]) by mx.google.com with ESMTPS id h90si4616090plb.198.2017.06.11.01.4= 5.33 for (version=3DTLS1_2 cipher=3DECDHE-RSA-AES128-GCM-SHA256 bits=3D128/1= 28); Sun, 11 Jun 2017 01:45:33 -0700 (PDT) Received-SPF: pass (google.com: domain of fwd-737qhysmhvayqaucaoiqbdaagaqlm= a2yamheccjdlibayawyakiazaqhsmccwmblia4uanqueigcimbkmazuz4aaeaaca=3D=3D=3D@o= payq.com designates 184.105.182.152 as permitted sender) client-ip=3D184.10= 5.182.152; Authentication-Results: mx.google.com; dkim=3Dpass header.i=3D@opayq.com; spf=3Dpass (google.com: domain of fwd-737qhysmhvayqaucaoiqbdaagaqlma= 2yamheccjdlibayawyakiazaqhsmccwmblia4uanqueigcimbkmazuz4aaeaaca=3D=3D=3D@op= ayq.com designates 184.105.182.152 as permitted sender) smtp.mailfrom=3DFWD= -737QHYSMHVAYQAUCAOIQBDAAGAQLMA2YAMHECCJDLIBAYAWYAKIAZAQHSMCCWMBLIA4UANQUEI= GCIMBKMAZUZ4AAEAACA=3D=3D=3D@opayq.com; dmarc=3Dpass (p=3DNONE sp=3DNONE dis=3DNONE) header.from=3Dopayq.com Delivery-date: Sun, 11 Jun 2017 01:45:33 -0700 Received: from smtp2.opayq.com ([54.235.124.91]:43568) helo=3D[54.235.124.9= 1] by opayq-outbound.junkemailfilter.com with esmtps (TLSv1.2:AES256-SHA256:2= 56) (Exim 4.89) id 1dJyV3-0004xo-63 on interface=3D184.105.182.150 for curtiskwong9@gmail.com; Sun, 11 Jun 2017 01:45:33 -0700 DKIM-Signature: v=3D1; d=3Dopayq.com; t=3D1497170732; b=3DQR5n+z6Nav5IDpJCU= QoApiYpJePrmnv5OUeuJCSU2ekus4T99E0IvVSiJPt9iuJfb32FUe5eYexKB6dbC8iYn3fF9dD8= fN+sohjHRFTCTUvW+wRipGLU5uYhe8mNybK9hALWIj2841oe6qLLXMFbDY9qe9jos8NGrJz9XHb= wuTc=3D; s=3Dabine; c=3Drelaxed/relaxed; a=3Drsa-sha256; bh=3DVjlPKw0i9qUoB= L0xyhs8fU5mFJ4bGo9Py+LjCTkspYk=3D; h=3DDate:From:Reply-To:Subject:To:List-U= nsubscribe; MIME-Version: 1.0 Content-Type: text/plain; charset=3D"utf-8" Content-Transfer-Encoding: 7bit X-GetAbine-Processed: 1 From: "lists.xen.org [Masked]" Sender: "lists.xen.org [Masked]" Reply-To:=20 FWD-737QHYSMHVAYQAUCAOIQBDAAGAQLMA2YAMHECCJDLIBAYAWYAKIAZAQHSMCCWMBLIA4UAN= QUEIGCIMBKMAZUZ4AAEAACA=3D=3D=3D@opayq.com To: f4da1594@opayq.com X-GetAbine-Sender: xen-changelog-bounces@lists.xen.org X-GetAbine-Disposable: f4da1594@opayq.com X-GetAbine-Host-Address: 54.235.124.91 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPLMWRWlGSWpSXmKPExsWS0XRdVVeZ2Tb SYEeTjsWEbQYOjB7b+3axBzBGsWbmJeVXJLBmrN/Qy1rwT6Ti0FTDBsZ2gS5GLg4hgS+MErvn bWHpYuQEcs4zSlw5HNLFyMHBJiAmMXevAkhYREBVYtaK5cwQJeoSTb8b2EBsYQEfibkL7rCC2 LwCZhLLT68Ds1mA6o/1HGCfwMixgJFhFaNGcWpRWWqRrqGpXlJRZnpGSW5iZo6uoYGZXm5qcX FiempOYlKxXnJ+7iZGoEcYgGAH47dlAYcYJTmYlER5t1yxiRTiS8pPqcxILM6ILyrNSS0+xCj DwaEkwcvCZBspJFiUmp5akZaZAwwNmLQEB4+SCG/eP6BW3uKCxNzizHSI1ClGRSlx3mOMQH0C IImM0jy4Nlg4XmKUlRLmZQQ6RIinILUoN7MEVf4VozgHo5Iwr9h/oPE8mXklcNNfAS1mAlp8/ QrY4pJEhJRUAyMLw9n6/IA9Geyt9pVCX58kuBsvNJsw95n8vNRav2lvA5122L5U+/Xhk/vqyK JtyvM6tQsOn9+Qw71B/kDgrkd6Qn/da/fLTy7edVrSJneynGrg27VGD0XymhknunxZz5heeWc Zh3rAVMEuwWcivyOTT7NaXXj7/O3MzuQPNxh8nDd32IX+XqzEUpyRaKjFXFScCACY0n3SQgIA AA=3D=3D X-Env-Sender: ian.jackson@eu.citrix.com X-Msg-Ref: server-2.tower-27.messagelabs.com!1497170722!47522183!1 X-Originating-IP: [104.130.215.37] X-SpamReason: No, hits=3D0.0 required=3D7.0 tests=3D X-StarScan-Received:=20 X-StarScan-Version: 9.4.19; banners=3D-,-,- X-VirusChecked: Checked Message-Id: Date: Sun, 11 Jun 2017 08:45:22 +0000 Subject: [Xen-changelog] [xen stable-4.6] stop_machine: fill fn_result only in case of error X-BeenThere: xen-changelog@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Change log for Mercurial \(receive only\)" List-Unsubscribe: ,=20 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: ,=20 X-Sender-Domain: xenproject.org X-Spamfilter-host: plato.junkemailfilter.com - http://www.junkemailfilter.c= om X-Key-ID: ZjRkYTE1OTRAb3BheXEuY29tIHhlbi1jaGFuZ2Vsb2ctYm91bmNlc0BsaXN0cy54Z= W4ub3JnIDIwMTctMDYtMTEgMDE6NDU6MjcgMWRKeVV4LTAwMDJaby01VA=3D=3D X-Domain-list: xenproject.org rackspace.com messagelabs.com xen.org opayq.c= om xensource.com citrix.com X-Mail-from: xen-changelog-bounces@lists.xen.org X-Sender-Host-Address: 192.237.175.120 X-Sender-Host-Name: lists.xenproject.org X-Key-ID: Y3VydGlza3dvbmc5QGdtYWlsLmNvbSBmd2QtNzM3cWh5c21odmF5cWF1Y2FvaXFiZ= GFhZ2FxbG1hMnlhbWhlY2NqZGxpYmF5YXd5YWtpYXphcWhzbWNjd21ibGlhNHVhbnF1ZWlnY2lt= YmttYXp1ejRhYWVhYWNhPT09QG9wYXlxLmNvbSAyMDE3LTA2LTExIDAxOjQ1OjMzIDFkSnlWMy0= wMDA0eG8tNjM=3D -------------------------Blur------------------------- This email is forwarded from a MASKED EMAIL you created using Blur. (https= ://dnt.abine.com/#help/faq/faq-whataremaskedemails). IF THIS IS SPAM, CLICK HERE TO BLOCK: https://dnt.abine.com/#/block_email/f4da1594@opayq.com/FWD-737QHYSMHVAYQAUC= AOIQBDAAGAQLMA2YAMHECCJDLIBAYAWYAKIAZAQHSMCCWMBLIA4UANQUEIGCIMBKMAZUZ4AAEAA= CA=3D=3D=3D@opayq.com Want to shop safely and privately online? Go Premium: https://dnt.abine.com= /?pk_campaign=3DmaskHeader#premium -------------------------by Abine------------------------- commit 314915cb4aa3865c8623516b65216b974a7d4e9a Author: Gregory Herrero AuthorDate: Fri Jun 9 13:58:57 2017 +0200 Commit: Jan Beulich CommitDate: Fri Jun 9 13:58:57 2017 +0200 stop_machine: fill fn_result only in case of error =20 When stop_machine_run() is called with NR_CPUS as last argument, fn_result member must be filled only if an error happens since it is shared across all cpus. =20 Assume CPU1 detects an error and set fn_result to -1, then CPU2 doesn't detect an error and set fn_result to 0. The error detected by CPU1 will be ignored. =20 Note that in case multiple failures occur on different CPUs, only the last error will be reported. =20 Signed-off-by: Gregory Herrero Reviewed-by: Wei Liu master commit: d8b833d78f6bfde9855a949b5e6d3790d78c0fb7 master date: 2017-06-01 10:53:04 +0200 --- xen/common/stop_machine.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) =20 @@ -113,7 +114,11 @@ int stop_machine_run(int (*fn)(void *), void *data, un= signed int cpu) =20 stopmachine_set_state(STOPMACHINE_INVOKE); if ( (cpu =3D=3D smp_processor_id()) || (cpu =3D=3D NR_CPUS) ) - stopmachine_data.fn_result =3D (*fn)(data); + { + ret =3D (*fn)(data); + if ( ret ) + write_atomic(&stopmachine_data.fn_result, ret); + } stopmachine_wait_state(); ret =3D stopmachine_data.fn_result; =20 @@ -151,8 +156,12 @@ static void stopmachine_action(unsigned long cpu) case STOPMACHINE_INVOKE: if ( (stopmachine_data.fn_cpu =3D=3D smp_processor_id()) || (stopmachine_data.fn_cpu =3D=3D NR_CPUS) ) - stopmachine_data.fn_result =3D - stopmachine_data.fn(stopmachine_data.fn_data); + { + int ret =3D stopmachine_data.fn(stopmachine_data.fn_data); + + if ( ret ) + write_atomic(&stopmachine_data.fn_result, ret); + } break; default: break; -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.6 diff --git a/xen/common/stop_machine.c b/xen/common/stop_machine.c index cf109ba..f2484c7 100644 --- a/xen/common/stop_machine.c +++ b/xen/common/stop_machine.c @@ -95,6 +95,7 @@ int stop_machine_run(int (*fn)(void *), void *data, unsig= ned int cpu) stopmachine_data.fn_data =3D data; stopmachine_data.nr_cpus =3D nr_cpus; stopmachine_data.fn_cpu =3D cpu; + stopmachine_data.fn_result =3D 0; atomic_set(&stopmachine_data.done, 0); stopmachine_data.state =3D STOPMACHINE_START;