summaryrefslogtreecommitdiff
path: root/net/rds
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-03-07 20:10:04 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:19:46 (GMT)
commit75e5aaab8bf4f8a9eaf1e8fd119f8a3bbd74b7a5 (patch)
treee7b8bb770a5209e1510a1b0f2f0bbc3b1e759bb7 /net/rds
parentb4e35a44d3c268150f3803121e1d9ca1e5e9f998 (diff)
downloadlinux-fsl-qoriq-75e5aaab8bf4f8a9eaf1e8fd119f8a3bbd74b7a5.tar.xz
net: Use cpu_chill() instead of cpu_relax()
Retry loops on RT might loop forever when the modifying side was preempted. 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
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/ib_rdma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
index e8fdb17..5a44c6e 100644
--- a/net/rds/ib_rdma.c
+++ b/net/rds/ib_rdma.c
@@ -34,6 +34,7 @@
#include <linux/slab.h>
#include <linux/rculist.h>
#include <linux/llist.h>
+#include <linux/delay.h>
#include "rds.h"
#include "ib.h"
@@ -286,7 +287,7 @@ static inline void wait_clean_list_grace(void)
for_each_online_cpu(cpu) {
flag = &per_cpu(clean_list_grace, cpu);
while (test_bit(CLEAN_LIST_BUSY_BIT, flag))
- cpu_relax();
+ cpu_chill();
}
}