From: Heiko Carstens Date: Wed, 22 Oct 2008 15:00:26 +0000 (-0500) Subject: stop_machine: fix error code handling on multiple cpus X-Git-Tag: v2.6.28-rc1~36^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8163bcac779f62c6bf847caed9bce905db0693fb;p=pandora-kernel.git stop_machine: fix error code handling on multiple cpus Using |= for updating a value which might be updated on several cpus concurrently will not always work since we need to make sure that the update happens atomically. To fix this just use a write if the called function returns an error code on a cpu. We end up writing the error code of an arbitrary cpu if multiple ones fail but that should be sufficient. Signed-off-by: Heiko Carstens Signed-off-by: Rusty Russell --- Reading git-diff-tree failed