linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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: Wed, 16 Feb 2011 16:53:17 +0100	[thread overview]
Message-ID: <20110216155317.GD5592@quack.suse.cz> (raw)
In-Reply-To: <201102160652.BDI60469.JOVFSFOHLQOFtM@I-love.SAKURA.ne.jp>

On Wed 16-02-11 06:52:55, Tetsuo Handa wrote:
> Jan Kara wrote:
> >   Ext3 looks innocent here. That is a standard call path for open(..,
> > O_TRUNC). But apparently something broke in SLUB allocator. Adding proper
> > list to CC...
> 
> Thanks.
> 
> Both fs/jbd/transaction.c and fs/jbd2/transaction.c provide start_this_handle()
> and I don't know which one was called.
> 
> But
> 
> 	if (!journal->j_running_transaction) {
> 		new_transaction = kzalloc(sizeof(*new_transaction),
> 					  GFP_NOFS|__GFP_NOFAIL);
> 		if (!new_transaction) {
> 			ret = -ENOMEM;
> 			goto out;
> 		}
> 	}
> 
> does kzalloc(GFP_NOFS|__GFP_NOFAIL) causes /proc/$PID/status to show
> 
>   State:  D (disk sleep)
  It could. State D does not mean "disk sleep" but "uninterruptible sleep".
Lots of sleeps in kernel are in D state - for example waiting for all mutex
locks, waiting for IO, etc. But looking at the trace again, you're probably
right that we are actually waiting somewhere in start_this_handle() (in
fs/jbd/transaction.c) and __slab_alloc() is just some relict on stack. 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...

But in this case - does the process (sh) eventually resume or is it stuck
forever?

									Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2011-02-16 15:53 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 [this message]
2011-02-17  8:13       ` Tetsuo Handa
2011-02-17 15:38         ` Jan Kara
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=20110216155317.GD5592@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).