diff options
author | Gerald Schaefer <gerald.schaefer@de.ibm.com> | 2014-05-06 19:41:36 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-05-20 08:58:52 +0200 |
commit | 2e4006b34d06681ed95d55510d4450f29a13c417 (patch) | |
tree | 0ff439559cfcfc2bac5eb1b41d6412694fd49a03 /drivers/s390/cio/chp.h | |
parent | f1a858206804a5a694f30196e50756b86eb7d68c (diff) | |
download | op-kernel-dev-2e4006b34d06681ed95d55510d4450f29a13c417.zip op-kernel-dev-2e4006b34d06681ed95d55510d4450f29a13c417.tar.gz |
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 <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chp.h')
0 files changed, 0 insertions, 0 deletions