linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Galbraith <bitbucket@online.de>
To: RT <linux-rt-users@vger.kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Subject: [PATCH] rt,cpusets: seqlock fixlet for cpuset.c::cpuset_print_task_mems_allowed()
Date: Sat, 23 Mar 2013 19:10:29 +0100	[thread overview]
Message-ID: <1364062229.5596.7.camel@marge.simpson.net> (raw)
In-Reply-To: <1363962528.6345.97.camel@gandalf.local.home>

Added by mainline 63f43f55c9bbc14f76b582644019b8a07dc8219a
cpuset: fix cpuset_print_task_mems_allowed() vs rename() race

Signed-off-by: Mike Galbraith <bitbucket@online.de>
---
 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




      reply	other threads:[~2013-03-23 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 14:28 [ANNOUNCE] 3.0.69-rt96 Steven Rostedt
2013-03-23 18:10 ` Mike Galbraith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1364062229.5596.7.camel@marge.simpson.net \
    --to=bitbucket@online.de \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).