From: Andrew Morton <akpm@linux-foundation.org>
To: Jonas Bonn <jonas.bonn@gmail.com>
Cc: sct@redhat.com, linux-ext4@vger.kernel.org, jonas.bonn@gmail.com
Subject: Re: [PATCH] Do not try lock_acquire after handle made invalid
Date: Tue, 15 Jan 2008 15:59:14 -0800 [thread overview]
Message-ID: <20080115155914.c72aaea9.akpm@linux-foundation.org> (raw)
In-Reply-To: <12004403661489-git-send-email-jonas.bonn@gmail.com>
On Wed, 16 Jan 2008 00:39:26 +0100
Jonas Bonn <jonas.bonn@gmail.com> wrote:
> This likely fixes the oops in __lock_acquire reported as:
>
> http://www.kerneloops.org/raw.php?rawid=2753&msgid=
> http://www.kerneloops.org/raw.php?rawid=2749&msgid=
>
> In these reported oopses, start_this_handle is returning -EROFS.
>
> Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
> ---
> fs/jbd/transaction.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c
> index 08ff6c7..038ed74 100644
> --- a/fs/jbd/transaction.c
> +++ b/fs/jbd/transaction.c
> @@ -288,10 +288,12 @@ handle_t *journal_start(journal_t *journal, int nblocks)
> jbd_free_handle(handle);
> current->journal_info = NULL;
> handle = ERR_PTR(err);
> + goto out;
> }
>
> lock_acquire(&handle->h_lockdep_map, 0, 0, 0, 2, _THIS_IP_);
>
> +out:
> return handle;
> }
Yeah, thanks.
It looks like we forgot to port this lockdep support into ext4. This is
bad. What else got lost?
next prev parent reply other threads:[~2008-01-16 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 23:39 [PATCH] Do not try lock_acquire after handle made invalid Jonas Bonn
2008-01-15 23:59 ` Andrew Morton [this message]
2008-01-16 23:59 ` Mingming Cao
2008-01-17 19:47 ` [PATCH 1/4]jbd2: port jbd lockdep support to jbd2 Mingming Cao
2008-01-17 19:48 ` [PATCH 2/4]JBD2: Group short-lived and reclaimable kernel allocations Mingming Cao
2008-01-17 19:48 ` [PATCH 3/4]JBD2: user of the jiffies rounding code Mingming Cao
2008-01-17 19:48 ` [PATCH 4/4]JBD2: sparse pointer use of zero as null Mingming Cao
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=20080115155914.c72aaea9.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=jonas.bonn@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=sct@redhat.com \
/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