[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3] xen: stop_machine: fill fn_result only in case of error.



On Wed, May 31, 2017 at 03:06:15PM +0200, gregory.herrero@xxxxxxxxxx wrote:
> From: Gregory Herrero <gregory.herrero@xxxxxxxxxx>
> 
> 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.
> 
> 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.
> 
> Note that in case multiple failures occur on different CPUs, only the
> last error will be reported.
> 
> Signed-off-by: Gregory Herrero <gregory.herrero@xxxxxxxxxx>

Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.