From 2e4006b34d06681ed95d55510d4450f29a13c417 Mon Sep 17 00:00:00 2001 From: Gerald Schaefer Date: Tue, 6 May 2014 19:41:36 +0200 Subject: [PATCH] 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-format-patch failed