From: Gerald Schaefer Date: Tue, 6 May 2014 17:41:36 +0000 (+0200) Subject: s390/spinlock: fix system hang with spin_retry <= 0 X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~33^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e4006b34d06681ed95d55510d4450f29a13c417;p=pandora-kernel.git s390/spinlock: fix system hang with spin_retry <= 0 On LPAR, when spin_retry is set to <= 0, arch_spin_lock_wait() and arch_spin_lock_wait_flags() may end up in a while(1) loop w/o doing any compare and swap operation. To fix this, use do/while instead of for loop. Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed