public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Paul Mackerras <paulus@samba.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ext3 deadlock?
Date: Sun, 12 May 2002 21:08:20 -0700	[thread overview]
Message-ID: <3CDF3C34.5F0EB4EE@zip.com.au> (raw)
In-Reply-To: <15582.64211.376045.489317@argo.ozlabs.ibm.com>

Paul Mackerras wrote:
> 
> I'm having a problem with 2.5.15 on an old slow powerbook 3400.  It
> gets stuck during boot at the point where it starts syslogd.  At that
> point show_state() reveals that kjournald and one of the two syslogd
> processes are stuck in D state.  The stack trace for kjournald is:
> 
> schedule
> __wait_on_buffer
> journal_commit_transaction
> kjournald

kjournald is actually running a commit.  So recovery was successful
and the filesystem is up and running.

It's this trace which is the problem.  All the other processes
are blocked by kjournald.

kjournald is pretty much write-only.  It will perform the
occasional read to load the indirect blocks which describe the
journal location.  But that would show a different backtrace.

It appears that kjournald has submitted a block for writeout
(via submit_bh() or ll_rw_block()) and the interrupt which
signifies completion simply hasn't happened.

> ...
> 
> Can anyone suggest where I could start looking to work out why
> kjournald is getting stuck in __wait_on_buffer?  Where in the code
> does the corresponding wakeup happen?

journal_commit_transaction() writes blocks from several different
places, via ll_rw_block() or submit_bh().  It waits for the
buffers to come unlocked in the end_buffer_io_sync() or
journal_end_buffer_io_sync() completion handlers.

Possibly the device driver has failed to deliver an interrupt.

-

  reply	other threads:[~2002-05-13  4:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-12 23:29 ext3 deadlock? Paul Mackerras
2002-05-13  4:08 ` Andrew Morton [this message]
2002-05-14  2:15   ` Paul Mackerras

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=3CDF3C34.5F0EB4EE@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.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