Added by mainline 63f43f55c9bbc14f76b582644019b8a07dc8219a cpuset: fix cpuset_print_task_mems_allowed() vs rename() race Signed-off-by: Mike Galbraith <bitbucket@xxxxxxxxx> --- kernel/cpuset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index ea76c9c..63675f1 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -2503,10 +2503,10 @@ void cpuset_print_task_mems_allowed(struct task_struct *tsk) if (!dentry) { strcpy(cpuset_name, "/"); } else { - spin_lock(&dentry->d_lock); + seq_spin_lock(&dentry->d_lock); strlcpy(cpuset_name, (const char *)dentry->d_name.name, CPUSET_NAME_LEN); - spin_unlock(&dentry->d_lock); + seq_spin_unlock(&dentry->d_lock); } nodelist_scnprintf(cpuset_nodelist, CPUSET_NODELIST_LEN, -- 1.7.10.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html