]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
block: Use cpu_chill() for retry loops
authorThomas Gleixner <tglx@linutronix.de>
Thu, 20 Dec 2012 17:28:26 +0000 (18:28 +0100)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:47:30 +0000 (09:47 +0200)
commit8a88b7866867a13615f31368795ee9839061db75
tree5b7ae3d9d23abae7ad60e9ab88880ba446767b10
parent6f0eb7acb65812427cb502ce7b47ab0eb55c041b
block: Use cpu_chill() for retry loops

Retry loops on RT might loop forever when the modifying side was
preempted. Steven also observed a live lock when there was a
concurrent priority boosting going on.

Use cpu_chill() instead of cpu_relax() to let the system
make progress.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable-rt@vger.kernel.org
block/blk-ioc.c