diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-03-07 21:10:04 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2014-02-26 21:21:05 -0500 |
commit | b588f055ae08b85f4c504bb2f209977e4440ab79 (patch) | |
tree | 79451d837731e41d8bbebbe063d5cc15a84b5c74 /net/rds | |
parent | 3f106096baa099dcfa09c6f674e87e2f832788bc (diff) |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index e8fdb172adbb..5a44c6e77cd8 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(); } } |