From: Jan Kara <jack@suse.cz>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [2.6.32 ubuntu] I/O hang at start_this_handle
Date: Thu, 17 Feb 2011 16:38:47 +0100 [thread overview]
Message-ID: <20110217153847.GE4947@quack.suse.cz> (raw)
In-Reply-To: <201102170813.p1H8DhOJ083597@www262.sakura.ne.jp>
Hello,
On Thu 17-02-11 17:13:43, Tetsuo Handa wrote:
> Jan Kara wrote:
> > You can verify this by looking at disassembly of start_this_handle() in your
> > kernel and finding out where offset 0x22d is in the function...
>
> I confirmed that the function
>
> [<c02c7ead>] start_this_handle+0x22d/0x390
>
> is the one in fs/jbd/transaction.o .
>
> c02c7ea4: eb 07 jmp c02c7ead <start_this_handle+0x22d>
> c02c7ea6: 66 90 xchg %ax,%ax
> c02c7ea8: e8 93 a6 2e 00 call c05b2540 <schedule>
> c02c7ead: 89 d8 mov %ebx,%eax
> c02c7eaf: b9 02 00 00 00 mov $0x2,%ecx
> c02c7eb4: 8d 55 e0 lea -0x20(%ebp),%edx
> c02c7eb7: e8 d4 82 ea ff call c0170190 <prepare_to_wait>
> c02c7ebc: 8b 46 18 mov 0x18(%esi),%eax
> c02c7ebf: 85 c0 test %eax,%eax
> c02c7ec1: 75 e5 jne c02c7ea8 <start_this_handle+0x228>
> c02c7ec3: 8b 45 cc mov -0x34(%ebp),%eax
> c02c7ec6: 8d 55 e0 lea -0x20(%ebp),%edx
> c02c7ec9: e8 e2 81 ea ff call c01700b0 <finish_wait>
> c02c7ece: e9 08 fe ff ff jmp c02c7cdb <start_this_handle+0x5b>
>
> The location in that function is
>
> /* Wait on the journal's transaction barrier if necessary */
> if (journal->j_barrier_count) {
> spin_unlock(&journal->j_state_lock);
> wait_event(journal->j_wait_transaction_locked,
> journal->j_barrier_count == 0);
> goto repeat;
> }
>
> . (Disassembly with mixed code attached at the bottom.)
Great, thanks for analysis.
> > But in this case - does the process (sh) eventually resume or is it stuck
> > forever?
>
> I waited for a few hours but the process did not resume. Thus, I gave up.
OK, so stuck forever ;). Interesting. So we probably missed a wakeup
somehow or j_barrier_count got corrupted. I suppose you are not able to
reproduce the hang, are you? Looking at the code, it looks safe and I have
no clue how it could happen. So unless you are able to see the issue again
(so that we can gather some more debug information), I'm not able to help...
I'm sorry.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
next prev parent reply other threads:[~2011-02-17 15:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 5:26 [2.6.32 ubuntu] I/O hang at start_this_handle Tetsuo Handa
2011-02-15 15:16 ` Jan Kara
2011-02-15 21:52 ` Tetsuo Handa
2011-02-16 15:53 ` Jan Kara
2011-02-17 8:13 ` Tetsuo Handa
2011-02-17 15:38 ` Jan Kara [this message]
2011-04-08 14:38 ` Tetsuo Handa
2011-04-08 18:29 ` Jan Kara
2011-04-09 2:21 ` Tetsuo Handa
2011-04-12 19:50 ` Jan Kara
2011-04-12 22:00 ` Tetsuo Handa
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=20110217153847.GE4947@quack.suse.cz \
--to=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
/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).