From: timg@tpi.com (Tim Gardner)
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] 2.6.39-rc7+ fs: Fix spinlock recursion in get_active_super()
Date: Wed, 18 May 2011 10:35:00 -0600 (MDT) [thread overview]
Message-ID: <20110518163500.5CA99F912D@sepang.rtg.net> (raw)
>From c7d9161350188c8132210eea5c7f6edff94e6c9c Mon Sep 17 00:00:00 2001
From: Tim Gardner <tim.gardner@canonical.com>
Date: Wed, 18 May 2011 10:30:02 -0600
Subject: [PATCH] fs: Fix spinlock recursion in get_active_super()
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
fs/super.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/super.c b/fs/super.c
index 8a06881..e203e2d 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -503,8 +503,8 @@ struct super_block *get_active_super(struct block_device *bdev)
if (!bdev)
return NULL;
-restart:
spin_lock(&sb_lock);
+restart:
list_for_each_entry(sb, &super_blocks, s_list) {
if (list_empty(&sb->s_instances))
continue;
--
1.7.0.4
next reply other threads:[~2011-05-18 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 16:35 Tim Gardner [this message]
2011-05-18 18:15 ` Christoph Hellwig
2011-05-18 18:51 ` Tim Gardner
2011-05-18 23:06 ` Al Viro
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=20110518163500.5CA99F912D@sepang.rtg.net \
--to=timg@tpi.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®