From: Andrew Morton <andrewm@uow.edu.au>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: VFS locking & HFS problems (2.4.6pre6)
Date: Sat, 30 Jun 2001 01:52:35 +1000 [thread overview]
Message-ID: <3B3CA443.12C731E5@uow.edu.au> (raw)
In-Reply-To: <20010629150942.1359@smtp.adsl.oleane.com>
Benjamin Herrenschmidt wrote:
>
> I've had a deadlock twice with 2.4.6pre6 today. It's an SMP kernel
> running on an UP box (a PowerBook Pismo).
>
> The deadlock happen in the HFS filesystem in hfs_cat_put(), apparently
> (quickly looking at addresses) in spin_lock().
>
Please test this:
Index: fs/hfs/catalog.c
===================================================================
RCS file: /opt/cvs/lk/fs/hfs/catalog.c,v
retrieving revision 1.2
diff -u -r1.2 catalog.c
--- fs/hfs/catalog.c 2001/02/17 01:44:39 1.2
+++ fs/hfs/catalog.c 2001/06/29 15:54:17
@@ -549,7 +549,7 @@
entry->state &= ~HFS_LOCK;
hfs_wake_up(&entry->wait);
}
-
+ spin_lock(&entry_lock);
return entry;
}
@@ -559,7 +559,6 @@
if (grow_entries())
goto add_new_entry;
- spin_unlock(&entry_lock);
return NULL;
read_fail:
@@ -570,7 +569,6 @@
init_entry(entry);
list_add(&entry->list, &entry_unused);
entries_stat.nr_free_entries++;
- spin_unlock(&entry_lock);
return NULL;
}
next prev parent reply other threads:[~2001-06-29 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-29 15:09 Benjamin Herrenschmidt
2001-06-29 15:52 ` Andrew Morton [this message]
2001-06-29 19:53 ` Alexander Viro
[not found] <E15G08g-0000UO-00@the-village.bc.nu>
2001-06-29 16:10 ` Benjamin Herrenschmidt
2001-06-29 16:29 ` Alan Cox
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=3B3CA443.12C731E5@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®