[linux-yocto] [PATCH 1/2] fs: aufs: fix a build error for archs which doesn't support MUTEX_SPIN_ON_OWNER
Kevin Hao
kexin.hao at windriver.com
Wed May 27 05:19:12 PDT 2015
For struct mutex, the member "owner" only exist when either
DEBUG_MUTEXES or MUTEX_SPIN_ON_OWNER is enabled. The SMP is a necessary
condition, but not a sufficiency condition for MUTEX_SPIN_ON_OWNER.
So we would get build error on arch such as mpis due to SMP is
enabled and both DEBUG_MUTEXES and MUTEX_SPIN_ON_OWNER are disabled.
Replace the SMP with MUTEX_SPIN_ON_OWNER to fix it.
Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
---
fs/aufs/i_op.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
index f0edd021102b..268a8a54ebfc 100644
--- a/fs/aufs/i_op.c
+++ b/fs/aufs/i_op.c
@@ -441,7 +441,7 @@ out:
void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct *task)
{
-#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_SMP)
+#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_MUTEX_SPIN_ON_OWNER)
p->hdir->hi_inode->i_mutex.owner = task;
#endif
}
--
2.1.0
More information about the linux-yocto
mailing list