summaryrefslogtreecommitdiff
path: root/fs/autofs4/autofs_i.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-03-07 20:00:34 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:54 (GMT)
commitfae775f49cbca6660d77086c4eed1d2c77afcdb0 (patch)
tree076cdd973f65d2e4c80f7a48b47de8cd6b39f914 /fs/autofs4/autofs_i.h
parentfb89e9743e513d51e2ea43deb0451461c328435c (diff)
downloadlinux-fsl-qoriq-fae775f49cbca6660d77086c4eed1d2c77afcdb0.tar.xz
fs: dcache: Use cpu_chill() in trylock loops
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 'fs/autofs4/autofs_i.h')
-rw-r--r--fs/autofs4/autofs_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h
index 3f1128b..c2ed9c4 100644
--- a/fs/autofs4/autofs_i.h
+++ b/fs/autofs4/autofs_i.h
@@ -34,6 +34,7 @@
#include <linux/sched.h>
#include <linux/mount.h>
#include <linux/namei.h>
+#include <linux/delay.h>
#include <asm/current.h>
#include <asm/uaccess.h>